@coolon/angular-ui-powerups 11.0.0-alpha.17 → 11.0.0-alpha.3
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/assets/table.scss +6 -13
- package/bundles/coolon-angular-ui-powerups.umd.js +62 -185
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/card-container/card-container.component.js +1 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/components/commands/command/command.component.js +1 -5
- package/esm2015/lib/components/commands/command/command.component.js.map +1 -1
- package/esm2015/lib/components/commands/command/command.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.js +3 -0
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/column-model.js +1 -2
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/default-cell-renderer/default-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/table/table-model.js +0 -9
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table.component.js +3 -30
- package/esm2015/lib/components/table/table.component.js.map +1 -1
- package/esm2015/lib/components/table/table.component.metadata.json +1 -1
- package/esm2015/lib/components/track-by.js +1 -5
- package/esm2015/lib/components/track-by.js.map +1 -1
- package/esm2015/lib/components/tree-table/decorated-tree-node.js +22 -19
- package/esm2015/lib/components/tree-table/decorated-tree-node.js.map +1 -1
- package/esm2015/lib/components/tree-table/tree-table-component.js +4 -21
- package/esm2015/lib/components/tree-table/tree-table-component.js.map +1 -1
- package/esm2015/lib/components/tree-table/tree-table-component.metadata.json +1 -1
- package/esm2015/lib/directives/directives.module.js +2 -8
- package/esm2015/lib/directives/directives.module.js.map +1 -1
- package/esm2015/lib/directives/directives.module.metadata.json +1 -1
- package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm2015/lib/directives/exports.js +0 -2
- package/esm2015/lib/directives/exports.js.map +1 -1
- package/esm2015/lib/directives/exports.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +9 -18
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.metadata.json +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.metadata.json +1 -1
- package/esm2015/lib/place/place-component.js +3 -1
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +55 -177
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command/command.component.d.ts +1 -2
- package/lib/components/table/column-model.d.ts +0 -1
- package/lib/components/table/table-model.d.ts +0 -9
- package/lib/components/table/table.component.d.ts +6 -24
- package/lib/components/track-by.d.ts +1 -3
- package/lib/components/tree-table/tree-table-component.d.ts +0 -9
- package/lib/directives/exports.d.ts +0 -2
- package/lib/place/components/abstract-place-navigation.component.d.ts +2 -9
- package/lib/place/place-component.d.ts +1 -1
- package/package.json +1 -1
- package/schematics/aup-i18n/index.js +28 -8
- package/schematics/aup-i18n/index.js.map +1 -1
- package/schematics/aup-i18n/templates/i18n/aup/components.yml.template +69 -0
- package/schematics/bootstrap-app/index.js +4 -5
- package/schematics/bootstrap-app/index.js.map +1 -1
- package/schematics/bootstrap-app/templates/{i18n.config.json.template → i18n/config.json.template} +0 -2
- package/schematics/bootstrap-app/templates/i18n/notifications.yml.template +19 -0
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/place-add/index.js +5 -4
- package/schematics/place-add/index.js.map +1 -1
- package/schematics/place-add/templates/component/__name@dasherize__.component.ts.template +1 -3
- package/schematics/place-add/templates/files/i18n/places/__name@dasherize__.yml.template +7 -0
- package/esm2015/lib/directives/highlight-text-model.directive.js +0 -20
- package/esm2015/lib/directives/highlight-text-model.directive.js.map +0 -1
- package/esm2015/lib/directives/highlight-text-model.directive.metadata.json +0 -1
- package/esm2015/lib/directives/highlight-text-model.directive.ngfactory.js.map +0 -1
- package/esm2015/lib/directives/highlight.pipe.js +0 -43
- package/esm2015/lib/directives/highlight.pipe.js.map +0 -1
- package/esm2015/lib/directives/highlight.pipe.metadata.json +0 -1
- package/esm2015/lib/directives/highlight.pipe.ngfactory.js.map +0 -1
- package/lib/directives/highlight-text-model.directive.d.ts +0 -5
- package/lib/directives/highlight.pipe.d.ts +0 -11
- package/schematics/aup-i18n/templates/app/aup.i18n.yml.template +0 -80
- package/schematics/place-add/templates/component/__name@dasherize__.i18n.yml.template +0 -5
- /package/schematics/bootstrap-app/templates/{src/app → app}/app-routing.module.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{src/app → app}/app.component.html.template +0 -0
- /package/schematics/bootstrap-app/templates/{src/app → app}/app.component.scss.template +0 -0
- /package/schematics/bootstrap-app/templates/{src/app → app}/app.component.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{src/app → app}/app.module.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{src/app → app}/i18n.ts.template +0 -0
- /package/schematics/bootstrap-app/templates/{src/assets → assets}/fonts/material-design-icons/MaterialIcons-Regular.eot +0 -0
- /package/schematics/bootstrap-app/templates/{src/assets → assets}/fonts/material-design-icons/MaterialIcons-Regular.ijmap +0 -0
- /package/schematics/bootstrap-app/templates/{src/assets → assets}/fonts/material-design-icons/MaterialIcons-Regular.svg +0 -0
- /package/schematics/bootstrap-app/templates/{src/assets → assets}/fonts/material-design-icons/MaterialIcons-Regular.ttf +0 -0
- /package/schematics/bootstrap-app/templates/{src/assets → assets}/fonts/material-design-icons/MaterialIcons-Regular.woff +0 -0
- /package/schematics/bootstrap-app/templates/{src/assets → assets}/fonts/material-design-icons/MaterialIcons-Regular.woff2 +0 -0
- /package/schematics/bootstrap-app/templates/{src/assets → assets}/fonts/material-design-icons/README.md +0 -0
- /package/schematics/bootstrap-app/templates/{src/assets → assets}/fonts/material-design-icons/codepoints +0 -0
- /package/schematics/bootstrap-app/templates/{src/assets → assets}/fonts/material-design-icons/material-icons.css +0 -0
- /package/schematics/bootstrap-app/templates/{src/index.html.template → index.html.template} +0 -0
- /package/schematics/bootstrap-app/templates/{src/styles → styles}/global-variables.scss.template +0 -0
- /package/schematics/bootstrap-app/templates/{src/styles.scss.template → styles.scss.template} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorated-tree-node.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/tree-table/decorated-tree-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,yBAAyB,EAAW,MAAM,mBAAmB,CAAC;AAEvE,MAAM,sBAAsB;IAE1B,YAAqB,MAAwC,EAAW,IAAO;QAA1D,WAAM,GAAN,MAAM,CAAkC;QAAW,SAAI,GAAJ,IAAI,CAAG;IAC/E,CAAC;IAED,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,GAAG,EAAE;YACxC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9H,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,EAAE;YACnC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;gBACzD,OAAO,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,sBAAsB,CAAI,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC;YAC5F,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACV,CAAC,CAAC,CAAC;I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AO,OAAO,CAAC;IACjB,CAAC;IAED,aAAa,CAA0C,OAAU;QAC/D,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QACrD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,uBAAuB,CAAC,QAA4C;QAClE,IAAI,CAAC,KAAK,CAAC,IAAI,yBAAyB,CAAC,IAAI,CAAuB,QAAQ,CAAC,CAAC,CAAC;IACjF,CAAC;IAED,gBAAgB,CAAC,QAA4C;QAC3D,IAAI,CAAC,aAAa,CAAC,IAAI,yBAAyB,CAAC,IAAI,CAAuB,QAAQ,CAAC,CAAC,CAAC;IACzF,CAAC;IAGS,OAAO,CAAI,QAAgB,EAAE,OAAgB;QACrD,MAAM,GAAG,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5B,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE;YACtB,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,EAAE,CAAC;SACvB;QACD,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;IACnB,CAAC;CAEF;AAID,MAAM,KAAW,iBAAiB,CAIjC;AAJD,WAAiB,iBAAiB;IAChC,SAAgB,UAAU,CAAwB,IAAO;QACvD,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,sBAAsB,CAAI,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;IACjF,CAAC;IAFe,4BAAU,aAEzB,CAAA;AACH,CAAC,EAJgB,iBAAiB,KAAjB,iBAAiB,QAIjC","sourcesContent":["import { assert, Predicate } from '@coolon/pectin';\nimport { Mixin } from '@coolon/typescript-utilities';\nimport * as _ from 'lodash';\nimport { TreeNode } from './tree-node';\nimport { SelfAndDescendantsVisitor, Visitor } from './visitable.class';\n\nclass DecoratedTreeNodeMixin<T extends TreeNode<T>> {\n\n constructor(readonly parent: DecoratedTreeNode<T> | undefined, readonly node: T) {\n }\n\n get decoratedSelf(): DecoratedTreeNode<T> {\n return this.memoize('decoratedSelf', () => {\n return this.parent ? this.parent.children.find(child => child.node === this.node) : DecoratedTreeNode.createRoot(this.node);\n });\n }\n\n get children(): DecoratedTreeNode<T>[] {\n return this.memoize('children', () => {\n return this.node.children ? this.node.children.map(child => {\n return Mixin.createProxy(child, new DecoratedTreeNodeMixin<T>(this.decoratedSelf, child));\n }) : [];\n });\n }\n\n descendants(): DecoratedTreeNode<T>[] {\n return this.memoize('descendants', () => {\n const result = [];\n this.visitDescendants(child => result.push(child));\n return result;\n });\n }\n\n selfAndDescendants(): DecoratedTreeNode<T>[] {\n return this.memoize('selfAndDescendants', () => {\n const result = [];\n this.visitSelfAndDescendants(child => result.push(child));\n return result;\n });\n }\n\n siblingsBefore(): DecoratedTreeNode<T>[] {\n return this.memoize('siblingsBefore', () => {\n if (this.parent) {\n return this.parent.children.slice(0, this.myIndex());\n } else {\n return [];\n }\n });\n }\n\n siblingsAfter(): DecoratedTreeNode<T>[] {\n return this.memoize('siblingsAfter', () => {\n if (this.parent) {\n return this.parent.children.slice(1 + this.myIndex());\n } else {\n return [];\n }\n });\n }\n\n siblings(): DecoratedTreeNode<T>[] {\n return this.memoize('siblings', () => [].concat(this.siblingsBefore(), this.siblingsAfter()));\n }\n\n isFirstChild(): boolean {\n return this.memoize('isFirstChild', () => this.parent ? this.myIndex() === 0 : false);\n }\n\n protected myIndex() {\n return this.memoize('myIndex', () => {\n const myIndex = this.parent.children.findIndex(child => child.node === this.node);\n assert.isTruthy(myIndex >= 0, 'illegal state, expected index to be >= 0');\n return myIndex;\n });\n }\n\n isLastChild(): boolean {\n return this.memoize('isLastChild', () => {\n return this.parent ? this.myIndex() === this.parent.children.length - 1 : false;\n });\n }\n\n hasSiblings(): boolean {\n return this.parent ? this.node.children.length > 1 : false;\n }\n\n find(predicate: Predicate<DecoratedTreeNode<T>>): DecoratedTreeNode<T> {\n return _.find(this.descendants(), predicate);\n }\n\n select(predicate: Predicate<DecoratedTreeNode<T>>): DecoratedTreeNode<T>[] {\n return _.filter(this.descendants(), predicate);\n }\n\n flattenInto(array: DecoratedTreeNode<T>[]): DecoratedTreeNode<T>[] {\n this.visitSelfAndDescendants(child => array.push(child));\n return array;\n }\n\n ancestors(): DecoratedTreeNode<T>[] {\n return this.memoize('ancestors', () => {\n return this.parent ? this.parent.ancestors().concat([this.parent]) : [];\n });\n }\n\n ancestorsAndSelf(): DecoratedTreeNode<T>[] {\n return this.memoize('ancestorsAndSelf', () => {\n return this.ancestors().concat([(this.decoratedSelf)]);\n });\n }\n\n pathToParent(parent: DecoratedTreeNode<T>): DecoratedTreeNode<T>[] {\n if (this.node === parent.node) {\n return [];\n } else if (this.parent) {\n const pathToParent = this.parent.pathToParent(parent);\n return pathToParent.concat([this.parent]);\n } else {\n throw new Error('parent is not an ancestor');\n }\n }\n\n pathToParentAndSelf(parent): DecoratedTreeNode<T>[] {\n return this.pathToParent(parent).concat([this.decoratedSelf]);\n }\n\n isRoot(): boolean {\n return !this.parent;\n }\n\n get depth(): number {\n return this.isRoot() ? 0 : this.parent.depth + 1;\n }\n\n isLeaf(): boolean {\n return !this.isRoot() && this.node.children.length < 1;\n }\n\n hasChildren(): boolean {\n return this.node.children && this.node.children.length > 0;\n }\n\n depthFromParent(parent): number {\n return this.pathToParent(parent).length;\n }\n\n treeDepth(): number {\n return this.memoize('treeDepth', () => {\n return 1 + this.descendants().map(child => child.depthFromParent(this)).reduce((prev, current) => Math.max(prev, current));\n });\n }\n\n flatten(): DecoratedTreeNode<T>[] {\n return this.memoize('flatten', () => {\n return this.flattenInto([]);\n });\n }\n\n visit<V extends Visitor<DecoratedTreeNode<T>>>(visitor: V): V {\n visitor.visit(this as any as DecoratedTreeNode<T>);\n return visitor;\n }\n\n visitChildren<V extends Visitor<DecoratedTreeNode<T>>>(visitor: V): V {\n _.each(this.children, child => child.visit(visitor));\n return visitor;\n }\n\n visitSelfAndDescendants(callback: (it: DecoratedTreeNode<T>) => void) {\n this.visit(new SelfAndDescendantsVisitor.Each<DecoratedTreeNode<T>>(callback));\n }\n\n visitDescendants(callback: (it: DecoratedTreeNode<T>) => void) {\n this.visitChildren(new SelfAndDescendantsVisitor.Each<DecoratedTreeNode<T>>(callback));\n }\n\n\n protected memoize<V>(property: string, factory: () => V) {\n const key = `__${property}`;\n if (_.isNil(this[key])) {\n this[key] = factory();\n }\n return this[key];\n }\n\n}\n\nexport type DecoratedTreeNode<T extends TreeNode<T>> = Omit<T, 'children'> & DecoratedTreeNodeMixin<T>;\n\nexport namespace DecoratedTreeNode {\n export function createRoot<T extends TreeNode<T>>(node: T): DecoratedTreeNode<T> {\n return Mixin.createProxy(node, new DecoratedTreeNodeMixin<T>(undefined, node));\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"decorated-tree-node.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/tree-table/decorated-tree-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,yBAAyB,EAAW,MAAM,mBAAmB,CAAC;AAEvE,MAAM,sBAAsB;IAE1B,YAAqB,MAAwC,EAAW,IAAO;QAA1D,WAAM,GAAN,MAAM,CAAkC;QAAW,SAAI,GAAJ,IAAI,CAAG;IAC/E,CAAC;IAED,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,GAAG,EAAE;YACxC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,UAA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AG,CAAC,GAAG,OAAO,EAAE,CAAC;SACvB;QACD,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;IACnB,CAAC;CAEF;AAID,MAAM,KAAW,iBAAiB,CAIjC;AAJD,WAAiB,iBAAiB;IAChC,SAAgB,UAAU,CAAwB,IAAO;QACvD,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,sBAAsB,CAAI,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;IACjF,CAAC;IAFe,4BAAU,aAEzB,CAAA;AACH,CAAC,EAJgB,iBAAiB,KAAjB,iBAAiB,QAIjC","sourcesContent":["import { assert, Predicate } from '@coolon/pectin';\nimport { Mixin } from '@coolon/typescript-utilities';\nimport { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';\nimport * as _ from 'lodash';\nimport { TreeNode } from './tree-node';\nimport { SelfAndDescendantsVisitor, Visitor } from './visitable.class';\n\nclass DecoratedTreeNodeMixin<T extends TreeNode<T>> {\n\n constructor(readonly parent: DecoratedTreeNode<T> | undefined, readonly node: T) {\n }\n\n get decoratedSelf(): DecoratedTreeNode<T> {\n return this.memoize(\"decoratedSelf\", () => {\n return this.parent ? this.parent.children.find(child => child.node === this.node) : DecoratedTreeNode.createRoot(this.node);\n });\n }\n\n get children(): DecoratedTreeNode<T>[] {\n return this.memoize(\"children\", () => {\n return this.node.children ? this.node.children.map(child => {\n return Mixin.createProxy(child, new DecoratedTreeNodeMixin<T>(this.decoratedSelf, child));\n }) : [];\n });\n }\n\n descendants(): DecoratedTreeNode<T>[] {\n return this.memoize(\"descendants\", () => {\n const result = [];\n this.visitDescendants(child => result.push(child));\n return result;\n });\n }\n\n selfAndDescendants(): DecoratedTreeNode<T>[] {\n return this.memoize(\"selfAndDescendants\", () => {\n const result = [];\n this.visitSelfAndDescendants(child => result.push(child));\n return result;\n });\n }\n\n siblingsBefore(): DecoratedTreeNode<T>[] {\n return this.memoize('siblingsBefore', () => {\n if (this.parent) {\n return this.parent.children.slice(0, this.myIndex());\n } else {\n return [];\n }\n });\n }\n\n siblingsAfter(): DecoratedTreeNode<T>[] {\n return this.memoize('siblingsAfter', () => {\n if (this.parent) {\n return this.parent.children.slice(1 + this.myIndex());\n } else {\n return [];\n }\n });\n }\n\n siblings(): DecoratedTreeNode<T>[] {\n return this.memoize('siblings', () => [].concat(this.siblingsBefore(), this.siblingsAfter()));\n }\n\n isFirstChild(): boolean {\n return this.memoize('isFirstChild', () => this.parent ? this.myIndex() === 0 : false);\n }\n\n protected myIndex() {\n return this.memoize('myIndex', () => {\n const myIndex = this.parent.children.findIndex(child => child.node === this.node);\n assert.isTruthy(myIndex >= 0, 'illegal state, expected index to be >= 0');\n return myIndex;\n });\n }\n\n isLastChild(): boolean {\n return this.memoize('isLastChild', () => {\n return this.parent ? this.myIndex() === this.parent.children.length - 1 : false;\n });\n }\n\n hasSiblings(): boolean {\n return this.parent ? this.node.children.length > 1 : false;\n }\n\n find(predicate: Predicate<DecoratedTreeNode<T>>): DecoratedTreeNode<T> {\n return _.find(this.descendants(), predicate);\n }\n\n select(predicate: Predicate<DecoratedTreeNode<T>>): DecoratedTreeNode<T>[] {\n return _.filter(this.descendants(), predicate);\n }\n\n flattenInto(array: DecoratedTreeNode<T>[]): DecoratedTreeNode<T>[] {\n this.visitSelfAndDescendants(child => array.push(child));\n return array;\n }\n\n ancestors(): DecoratedTreeNode<T>[] {\n return this.memoize('ancestors', () => {\n return this.parent ? this.parent.ancestors().concat([this.parent]) : [];\n });\n }\n\n ancestorsAndSelf(): DecoratedTreeNode<T>[] {\n return this.memoize(\"ancestorsAndSelf\", () => {\n return this.ancestors().concat([(this.decoratedSelf)]);\n })\n }\n\n pathToParent(parent: DecoratedTreeNode<T>): DecoratedTreeNode<T>[] {\n return this.memoize(\"pathToParent\", () => {\n if (this.node === parent.node) {\n return [];\n } else if (this.parent) {\n return this.parent.pathToParent(parent).concat([this.parent]);\n } else {\n throw new Error('parent is not an ancestor');\n }\n })\n }\n\n pathToParentAndSelf(parent): DecoratedTreeNode<T>[] {\n return this.memoize(\"pathToParentAndSelf\", () => {\n return this.pathToParent(parent).concat([this.decoratedSelf]);\n });\n }\n\n isRoot(): boolean {\n return !this.parent;\n }\n\n get depth(): number {\n return this.isRoot() ? 0 : this.parent.depth + 1;\n }\n\n isLeaf(): boolean {\n return !this.isRoot() && this.node.children.length < 1;\n }\n\n hasChildren(): boolean {\n return this.node.children.length > 0;\n }\n\n depthFromParent(parent): number {\n return this.pathToParent(parent).length;\n }\n\n treeDepth(): number {\n return this.memoize(\"treeDepth\", () => {\n return 1 + this.descendants().map(child => child.depthFromParent(this)).reduce((prev, current) => Math.max(prev, current));\n })\n }\n\n flatten(): DecoratedTreeNode<T>[] {\n return this.memoize(\"flatten\", () => {\n return this.flattenInto([]);\n })\n }\n\n visit<V extends Visitor<DecoratedTreeNode<T>>>(visitor: V): V {\n visitor.visit(this as any as DecoratedTreeNode<T>);\n return visitor;\n }\n\n visitChildren<V extends Visitor<DecoratedTreeNode<T>>>(visitor: V): V {\n _.each(this.children, child => child.visit(visitor));\n return visitor;\n }\n\n visitSelfAndDescendants(callback: (it: DecoratedTreeNode<T>) => void) {\n this.visit(new SelfAndDescendantsVisitor.Each<DecoratedTreeNode<T>>(callback));\n }\n\n visitDescendants(callback: (it: DecoratedTreeNode<T>) => void) {\n this.visitChildren(new SelfAndDescendantsVisitor.Each<DecoratedTreeNode<T>>(callback));\n }\n\n\n protected memoize<V>(property: string, factory: () => V) {\n const key = `__${property}`;\n if (_.isNil(this[key])) {\n this[key] = factory();\n }\n return this[key];\n }\n\n}\n\nexport type DecoratedTreeNode<T extends TreeNode<T>> = Omit<T, 'children'> & DecoratedTreeNodeMixin<T>;\n\nexport namespace DecoratedTreeNode {\n export function createRoot<T extends TreeNode<T>>(node: T): DecoratedTreeNode<T> {\n return Mixin.createProxy(node, new DecoratedTreeNodeMixin<T>(undefined, node));\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component,
|
|
3
|
-
import {
|
|
2
|
+
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
|
3
|
+
import { TrackExternal } from '@coolon/pectin';
|
|
4
4
|
import { DisposableComponent } from '../disposable-component';
|
|
5
5
|
import { TreeTableModel } from './tree-table-model';
|
|
6
6
|
//
|
|
@@ -41,18 +41,12 @@ import { TreeTableModel } from './tree-table-model';
|
|
|
41
41
|
export class TreeTableComponent extends DisposableComponent {
|
|
42
42
|
constructor() {
|
|
43
43
|
super();
|
|
44
|
-
/**
|
|
45
|
-
* Set to true to enable scrolling. Once enabled the table will have 0 implicit height. You will either
|
|
46
|
-
* need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's
|
|
47
|
-
* containment area.
|
|
48
|
-
*/
|
|
49
|
-
this.enableScrolling = false;
|
|
50
44
|
}
|
|
51
45
|
}
|
|
52
46
|
TreeTableComponent.decorators = [
|
|
53
47
|
{ type: Component, args: [{
|
|
54
48
|
selector: "aup-tree-table",
|
|
55
|
-
template: "<aup-table [tableModel]=\"treeTableModel\"
|
|
49
|
+
template: "<aup-table [tableModel]=\"treeTableModel\"></aup-table>\n",
|
|
56
50
|
encapsulation: ViewEncapsulation.None // allow us to target nested table styles
|
|
57
51
|
,
|
|
58
52
|
styles: ["td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}td.mat-column-tree-label{width:1px}aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}aup-tree-label-cell-renderer{flex:1}"]
|
|
@@ -60,21 +54,10 @@ TreeTableComponent.decorators = [
|
|
|
60
54
|
];
|
|
61
55
|
TreeTableComponent.ctorParameters = () => [];
|
|
62
56
|
TreeTableComponent.propDecorators = {
|
|
63
|
-
treeTableModel: [{ type: Input }]
|
|
64
|
-
showHeaderModel: [{ type: Input }],
|
|
65
|
-
showHeader: [{ type: Input }],
|
|
66
|
-
enableScrolling: [{ type: Input }, { type: HostBinding, args: ['class.enable-scrolling',] }]
|
|
57
|
+
treeTableModel: [{ type: Input }]
|
|
67
58
|
};
|
|
68
59
|
__decorate([
|
|
69
60
|
TrackExternal(),
|
|
70
61
|
__metadata("design:type", TreeTableModel)
|
|
71
62
|
], TreeTableComponent.prototype, "treeTableModel", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
TrackExternal({ defaultValue: true }),
|
|
74
|
-
__metadata("design:type", ValueModel)
|
|
75
|
-
], TreeTableComponent.prototype, "showHeaderModel", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
StoreInValueModel('showHeaderModel'),
|
|
78
|
-
__metadata("design:type", Boolean)
|
|
79
|
-
], TreeTableComponent.prototype, "showHeader", void 0);
|
|
80
63
|
//# sourceMappingURL=tree-table-component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-table-component.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/tree-table/tree-table-component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"tree-table-component.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/components/tree-table/tree-table-component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,EAAE;AACF,qBAAqB;AACrB,gEAAgE;AAChE,uEAAuE;AACvE,2EAA2E;AAC3E,wEAAwE;AACxE,yDAAyD;AACzD,8CAA8C;AAC9C,EAAE;AACF,wEAAwE;AACxE,+DAA+D;AAC/D,mEAAmE;AACnE,+EAA+E;AAC/E,8FAA8F;AAC9F,EAAE;AACF,0GAA0G;AAC1G,qFAAqF;AACrF,+BAA+B;AAC/B,yDAAyD;AACzD,yDAAyD;AACzD,kDAAkD;AAClD,sEAAsE;AACtE,gEAAgE;AAChE,iBAAiB;AACjB,gBAAgB;AAChB,oGAAoG;AACpG,4CAA4C;AAC5C,2DAA2D;AAC3D,kEAAkE;AAClE,mDAAmD;AACnD,uBAAuB;AACvB,gBAAgB;AAChB,EAAE;AACF,qBAAqB;AACrB,KAAK;AASL,MAAM,OAAO,kBAA0C,SAAQ,mBAAmB;IAMhF;QACE,KAAK,EAAE,CAAC;IACV,CAAC;;;YAdF,SAAS,SAAC;gBACT,QAAQ,EAAE,gBAAgB;gBAC1B,qEAA0C;gBAE1C,aAAa,EAAE,iBAAiB,CAAC,IAAI,CAAC,yCAAyC;;;aAChF;;;;6BAGE,KAAK;;AAEN;IADC,aAAa,EAAE;8BACA,cAAc;0DAAI","sourcesContent":["import { Component, Input, ViewEncapsulation } from '@angular/core';\nimport { TrackExternal } from '@coolon/pectin';\nimport { DisposableComponent } from '../disposable-component';\nimport { TreeNode } from './tree-node';\nimport { TreeTableModel } from './tree-table-model';\n//\n// const template = `\n// <table-component list-model=\"zoneTreeController.visibleAreas\"\n// selection-model=\"zoneTreeController.selectionModel\"\n// selection-command=\"zoneTreeController.selectionCommand\"\n// hover-model=\"zoneTreeController.decoratedHoverModel\"\n// no-hover=\"zoneTreeController.noHover\"\n// no-lines=\"true\" no-scroll>\n//\n// <row-attr name=\"parent-id\" value=\"{{item.parent.id}}\"></row-attr>\n// <row-attr name=\"area-id\" value=\"{{item.id}}\"></row-attr>\n// <row-attr name=\"area-name\" value=\"{{item.name}}\"></row-attr>\n// <row-attr name=\"area-depth\" value=\"{{item.depthFromZone()}}\"></row-attr>\n// <row-attr name=\"collapsed\" value=\"{{zoneTreeController.isCollapsed(item)}}\"></row-attr>\n//\n// <column class=\"area\" ng-class=\"{root: item.isZone(), parent: item.isGroup()}\" class=\"allow-squish\">\n// <!--<label>Rooms in {{zoneTreeController.zoneModel.value.name}}</label>-->\n// <label>Rooms</label>\n// <div layout=\"row\" layout-align=\"start center\">\n// <tree-icons tree-item=\"item\"></tree-icons>\n// <area-icon area=\"item\"></area-icon>\n// <span ng-if=\"item.isZone()\">Zone ({{item.name}})</span>\n// <span ng-if=\"!item.isZone()\">{{item.name}}</span>\n// </div>\n// </column>\n// <column class=\"expand-collapse\" ng-class=\"{collapsed: zoneTreeController.isCollapsed(item)}\">\n// <md-button class=\"md-icon-button\"\n// ng-if=\"zoneTreeController.canCollapse(item)\"\n// ng-click=\"zoneTreeController.toggleCollapse(item)\">\n// <md-icon>keyboard_arrow_up</md-icon>\n// </md-button>\n// </column>\n//\n// </table-component>\n// `;\n\n\n@Component({\n selector: \"aup-tree-table\",\n templateUrl: './tree-table.component.html',\n styleUrls: ['./tree-table.component.scss'],\n encapsulation: ViewEncapsulation.None // allow us to target nested table styles\n})\nexport class TreeTableComponent<T extends TreeNode<T>> extends DisposableComponent {\n\n @Input()\n @TrackExternal()\n treeTableModel: TreeTableModel<T>;\n\n constructor() {\n super();\n }\n\n // zoneTreeModel: TreeModel<T>;\n // noHover: boolean;\n //\n // static compile(tElement, tAttrs, $compile) {\n // const newContent = angular.element(template);\n //\n // // // find methods don't work here... sigh. and this is sensetive to whitespace in the template BEWARE!!\n // // let table = angular.element(newContent[2]);\n //\n // tElement.find('column').each((index, el) => newContent.append(el));\n // tElement.contents().remove();\n //\n // const transclude = $compile(newContent);\n // return (scope, element, attrs, ctrl) => {\n // transclude(scope, function(clone) {\n // element.append(clone);\n // });\n // };\n // }\n //\n // constructor() {\n // super();\n // }\n //\n // get zoneModel() {\n // return this.zoneTreeModel.rootNodeModel;\n // }\n //\n // get visibleAreas() {\n // return this.zoneTreeModel.decoratedVisibleAreas;\n // }\n //\n // get selectionModel() {\n // return this.zoneTreeModel.decoratedSelectionModel;\n // }\n //\n // selectArea(decoratedArea: TreeModel.DecoratedArea) {\n // this.zoneTreeModel.select(decoratedArea);\n // }\n //\n // get decoratedHoverModel() {\n // return this.zoneTreeModel.decoratedHoverModel;\n // }\n //\n // canCollapse(area: TreeModel.DecoratedArea) {\n // // @ts-ignore\n // return area && !area.isZone() && (area.isGroup() && area.hasChildren());\n // }\n //\n // isCollapsed(area: TreeModel.DecoratedArea): boolean {\n // return area && this.zoneTreeModel.isCollapsed(area);\n // }\n //\n // toggleCollapse(area: TreeModel.DecoratedArea) {\n // if (this.isCollapsed(area)) {\n // this.zoneTreeModel.expand(area);\n // } else {\n // this.zoneTreeModel.collapse(area);\n // }\n // }\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"TreeTableComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../disposable-component","name":"DisposableComponent","line":48,"character":63},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":42,"character":1},"arguments":[{"selector":"aup-tree-table","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":46,"character":17},"member":"None"},"template":"<aup-table [tableModel]=\"treeTableModel\"
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"TreeTableComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../disposable-component","name":"DisposableComponent","line":48,"character":63},"arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":42,"character":1},"arguments":[{"selector":"aup-tree-table","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":46,"character":17},"member":"None"},"template":"<aup-table [tableModel]=\"treeTableModel\"></aup-table>\n","styles":["td.mat-cell{border-top-width:0!important;border-bottom-width:0!important}td.mat-column-tree-label{width:1px}aup-table-cell-renderer[column-id=tree-label]{padding-left:8px!important}aup-tree-label-cell-renderer{flex:1}"]}]}],"members":{"treeTableModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":51,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}]}}}}]
|
|
@@ -8,17 +8,13 @@ import { MatTabsModule } from '@angular/material/tabs';
|
|
|
8
8
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
9
9
|
import { CommandDirective } from './command.directive';
|
|
10
10
|
import { FocusBindingDirective } from './focus-binding.directive';
|
|
11
|
-
import { HighlightTextModelDirective } from './highlight-text-model.directive';
|
|
12
|
-
import { HighlightPipe } from './highlight.pipe';
|
|
13
11
|
export class DirectivesModule {
|
|
14
12
|
}
|
|
15
13
|
DirectivesModule.decorators = [
|
|
16
14
|
{ type: NgModule, args: [{
|
|
17
15
|
declarations: [
|
|
18
16
|
CommandDirective,
|
|
19
|
-
FocusBindingDirective
|
|
20
|
-
HighlightPipe,
|
|
21
|
-
HighlightTextModelDirective
|
|
17
|
+
FocusBindingDirective
|
|
22
18
|
],
|
|
23
19
|
imports: [
|
|
24
20
|
CommonModule,
|
|
@@ -31,9 +27,7 @@ DirectivesModule.decorators = [
|
|
|
31
27
|
],
|
|
32
28
|
exports: [
|
|
33
29
|
CommandDirective,
|
|
34
|
-
FocusBindingDirective
|
|
35
|
-
HighlightPipe,
|
|
36
|
-
HighlightTextModelDirective
|
|
30
|
+
FocusBindingDirective
|
|
37
31
|
]
|
|
38
32
|
},] }
|
|
39
33
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directives.module.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/directives/directives.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"directives.module.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/directives/directives.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAsBlE,MAAM,OAAO,gBAAgB;;;YApB5B,QAAQ,SAAC;gBACR,YAAY,EAAE;oBACZ,gBAAgB;oBAChB,qBAAqB;iBACtB;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,uBAAuB;oBACvB,WAAW;oBACX,cAAc;oBACd,kBAAkB;oBAClB,eAAe;oBACf,aAAa;iBACd;gBACD,OAAO,EAAE;oBACP,gBAAgB;oBAChB,qBAAqB;iBACtB;aAEF","sourcesContent":["import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { CommandDirective } from './command.directive';\nimport { FocusBindingDirective } from './focus-binding.directive';\n\n@NgModule({\n declarations: [\n CommandDirective,\n FocusBindingDirective\n ],\n imports: [\n CommonModule,\n BrowserAnimationsModule,\n FormsModule,\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n MatTabsModule\n ],\n exports: [\n CommandDirective,\n FocusBindingDirective\n ]\n\n})\nexport class DirectivesModule {\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"DirectivesModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"DirectivesModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./command.directive","name":"CommandDirective","line":13,"character":4},{"__symbolic":"reference","module":"./focus-binding.directive","name":"FocusBindingDirective","line":14,"character":4}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"BrowserAnimationsModule","line":18,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":19,"character":4},{"__symbolic":"reference","module":"@angular/material/input","name":"MatInputModule","line":20,"character":4},{"__symbolic":"reference","module":"@angular/material/form-field","name":"MatFormFieldModule","line":21,"character":4},{"__symbolic":"reference","module":"@angular/material/select","name":"MatSelectModule","line":22,"character":4},{"__symbolic":"reference","module":"@angular/material/tabs","name":"MatTabsModule","line":23,"character":4}],"exports":[{"__symbolic":"reference","module":"./command.directive","name":"CommandDirective","line":26,"character":4},{"__symbolic":"reference","module":"./focus-binding.directive","name":"FocusBindingDirective","line":27,"character":4}]}]}]}}}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directives.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/directives/directives.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './directives.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '@angular/cdk/text-field';\nimport * as i5 from '@angular/cdk/bidi';\nimport * as i6 from '@angular/material/form-field';\nimport * as i7 from '@angular/material/input';\nimport * as i8 from '@angular/cdk/scrolling';\nimport * as i9 from '@angular/material/core';\nimport * as i10 from '@angular/material/select';\nimport * as i11 from '@angular/material/tabs';\nimport * as i12 from './command.directive';\nimport * as i13 from './focus-binding.directive';\nimport * as i14 from '
|
|
1
|
+
{"version":3,"file":"directives.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/directives/directives.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './directives.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '@angular/cdk/text-field';\nimport * as i5 from '@angular/cdk/bidi';\nimport * as i6 from '@angular/material/form-field';\nimport * as i7 from '@angular/material/input';\nimport * as i8 from '@angular/cdk/scrolling';\nimport * as i9 from '@angular/material/core';\nimport * as i10 from '@angular/material/select';\nimport * as i11 from '@angular/material/tabs';\nimport * as i12 from './command.directive';\nimport * as i13 from './focus-binding.directive';\nimport * as i14 from '@angular/platform-browser/animations';\nexport const DirectivesModuleNgFactory:i0.NgModuleFactory<i1.DirectivesModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf<any> = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.ɵangular_packages_forms_forms_y = (<any>(null as any));\nvar _decl0_12:i3.NgSelectOption = (<any>(null as any));\nvar _decl0_13:i3.ɵangular_packages_forms_forms_x = (<any>(null as any));\nvar _decl0_14:i3.DefaultValueAccessor = (<any>(null as any));\nvar _decl0_15:i3.NumberValueAccessor = (<any>(null as any));\nvar _decl0_16:i3.RangeValueAccessor = (<any>(null as any));\nvar _decl0_17:i3.CheckboxControlValueAccessor = (<any>(null as any));\nvar _decl0_18:i3.SelectControlValueAccessor = (<any>(null as any));\nvar _decl0_19:i3.SelectMultipleControlValueAccessor = (<any>(null as any));\nvar _decl0_20:i3.RadioControlValueAccessor = (<any>(null as any));\nvar _decl0_21:i3.NgControlStatus = (<any>(null as any));\nvar _decl0_22:i3.NgControlStatusGroup = (<any>(null as any));\nvar _decl0_23:i3.RequiredValidator = (<any>(null as any));\nvar _decl0_24:i3.MinLengthValidator = (<any>(null as any));\nvar _decl0_25:i3.MaxLengthValidator = (<any>(null as any));\nvar _decl0_26:i3.PatternValidator = (<any>(null as any));\nvar _decl0_27:i3.CheckboxRequiredValidator = (<any>(null as any));\nvar _decl0_28:i3.EmailValidator = (<any>(null as any));\nvar _decl0_29:i3.NgModel = (<any>(null as any));\nvar _decl0_30:i3.NgModelGroup = (<any>(null as any));\nvar _decl0_31:i3.NgForm = (<any>(null as any));\nvar _decl0_32:i4.CdkAutofill = (<any>(null as any));\nvar _decl0_33:i4.CdkTextareaAutosize = (<any>(null as any));\nvar _decl0_34:i5.Dir = (<any>(null as any));\nvar _decl0_35:i6.MatError = (<any>(null as any));\nvar _decl0_36:i6.MatFormField = (<any>(null as any));\nvar _decl0_37:i6.MatHint = (<any>(null as any));\nvar _decl0_38:i6.MatLabel = (<any>(null as any));\nvar _decl0_39:i6.MatPlaceholder = (<any>(null as any));\nvar _decl0_40:i6.MatPrefix = (<any>(null as any));\nvar _decl0_41:i6.MatSuffix = (<any>(null as any));\nvar _decl0_42:i7.MatInput = (<any>(null as any));\nvar _decl0_43:i7.MatTextareaAutosize = (<any>(null as any));\nvar _decl0_44:i8.CdkScrollable = (<any>(null as any));\nvar _decl0_45:i9.MatOption = (<any>(null as any));\nvar _decl0_46:i9.MatOptgroup = (<any>(null as any));\nvar _decl0_47:i10.MatSelect = (<any>(null as any));\nvar _decl0_48:i10.MatSelectTrigger = (<any>(null as any));\nvar _decl0_49:i11.MatTabGroup = (<any>(null as any));\nvar _decl0_50:i11.MatTabLabel = (<any>(null as any));\nvar _decl0_51:i11.MatTab = (<any>(null as any));\nvar _decl0_52:i11.MatTabNav = (<any>(null as any));\nvar _decl0_53:i11.MatTabLink = (<any>(null as any));\nvar _decl0_54:i11.MatTabContent = (<any>(null as any));\nvar _decl0_55:i12.CommandDirective<any> = (<any>(null as any));\nvar _decl0_56:i13.FocusBindingDirective = (<any>(null as any));\nvar _decl0_57:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_58:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_59:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_60:i2.JsonPipe = (<any>(null as any));\nvar _decl0_61:i2.SlicePipe = (<any>(null as any));\nvar _decl0_62:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_63:i2.PercentPipe = (<any>(null as any));\nvar _decl0_64:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_65:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_66:i2.DatePipe = (<any>(null as any));\nvar _decl0_67:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_68:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_69:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_70:i2.CommonModule = (<any>(null as any));\nvar _decl0_71:i14.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_72:i3.FormsModule = (<any>(null as any));\nvar _decl0_73:i7.MatInputModule = (<any>(null as any));\nvar _decl0_74:i6.MatFormFieldModule = (<any>(null as any));\nvar _decl0_75:i10.MatSelectModule = (<any>(null as any));\nvar _decl0_76:i11.MatTabsModule = (<any>(null as any));\nvar _decl0_77:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_78:i0.ElementRef<any> = (<any>(null as any));\n"]}
|
|
@@ -6,6 +6,4 @@ export * from "./directives.module";
|
|
|
6
6
|
export * from "./focus-binding-factory";
|
|
7
7
|
export * from "./focus-binding.directive";
|
|
8
8
|
export * from "./focus-binding";
|
|
9
|
-
export * from "./highlight-text-model.directive";
|
|
10
|
-
export * from "./highlight.pipe";
|
|
11
9
|
//# sourceMappingURL=exports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/directives/exports.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/directives/exports.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./command.directive\";\nexport * from \"./directives.module\";\nexport * from \"./focus-binding-factory\";\nexport * from \"./focus-binding.directive\";\nexport * from \"./focus-binding\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./command.directive"},{"from":"./directives.module"},{"from":"./focus-binding-factory"},{"from":"./focus-binding.directive"},{"from":"./focus-binding"}
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./command.directive"},{"from":"./directives.module"},{"from":"./focus-binding-factory"},{"from":"./focus-binding.directive"},{"from":"./focus-binding"}]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/interaction/interaction.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './interaction.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from '@angular/material/button';\nimport * as i5 from '@angular/material/dialog';\nimport * as i6 from '@angular/material/tabs';\nimport * as i7 from '@angular/cdk/portal';\nimport * as i8 from '@angular/router';\nimport * as i9 from '@angular/material/icon';\nimport * as i10 from '../directives/command.directive';\nimport * as i11 from '../directives/focus-binding.directive';\nimport * as i12 from '../directives/highlight-text-model.directive';\nimport * as i13 from '@angular/flex-layout/flex';\nimport * as i14 from '@angular/flex-layout/grid';\nimport * as i15 from '../components/forms/number-input/number-input.component';\nimport * as i16 from '../components/forms/string-input/string-input.component';\nimport * as i17 from '../components/forms/text-input/text-input.component';\nimport * as i18 from '../components/forms/password-input/password-input.component';\nimport * as i19 from '../components/forms/checkbox-input/checkbox-input.component';\nimport * as i20 from '../components/forms/select-input/select-input.component';\nimport * as i21 from '../components/forms/multiple-select-input/multiple-select-input.component';\nimport * as i22 from '../components/forms/autocomplete-input/autocomplete-input.component';\nimport * as i23 from '../components/scroll-container/scroll-container.component';\nimport * as i24 from '../components/noop/noop.component';\nimport * as i25 from '../components/switch-case/switch-case.component';\nimport * as i26 from '../components/focus-container/focus-container.component';\nimport * as i27 from '../components/vertical-focus-container/vertical-focus-container.component';\nimport * as i28 from '../components/focusable.component';\nimport * as i29 from '../components/card-container/card-container.component';\nimport * as i30 from '../components/table/table.component';\nimport * as i31 from '../components/table/edit-row-controls/edit-row-controls.component';\nimport * as i32 from '../components/table/column-template/column-template.directive';\nimport * as i33 from '../components/icon/icon.component';\nimport * as i34 from '../components/section-header/section-header.component';\nimport * as i35 from '../components/table/table-row-menu/table-row-menu.component';\nimport * as i36 from '../components/commands/group/tool-bar/tool-bar.component';\nimport * as i37 from '../components/commands/command/command.component';\nimport * as i38 from '../components/commands/group/popup-menu/popup-menu.component';\nimport * as i39 from '../components/commands/command-face/command-face.component';\nimport * as i40 from '../components/commands/group/popup-menu/more-menu.component';\nimport * as i41 from '../components/commands/separator.component';\nimport * as i42 from '../components/commands/flex.component';\nimport * as i43 from '../components/tree-table/tree-table-component';\nimport * as i44 from '../components/busy-overlay/busy-overlay.component';\nimport * as i45 from '../components/empty-state/empty-state.component';\nimport * as i46 from '../components/table/paginator/paginator.component';\nimport * as i47 from './components/activity-container/activity-container.component';\nimport * as i48 from './components/confirmation-dialog/confirmation-dialog.component';\nimport * as i49 from './components/confirm-then-dialog/confirm-then-dialog.component';\nimport * as i50 from './components/alert-dialog/alert-dialog.component';\nimport * as i51 from './components/activity-container/activity-outlet/activity-outlet.component';\nimport * as i52 from './components/inplace-interaction-context/in-place-interaction-context.component';\nimport * as i53 from './components/add-item-interaction-context/add-item-interaction-context.component';\nimport * as i54 from './components/activity-actions/activity-actions.component';\nimport * as i55 from './components/popup-interaction-context/popup-interaction-context.component';\nimport * as i56 from './components/input-activities/string-input-activity';\nimport * as i57 from './components/input-activities/select-input-activity';\nimport * as i58 from './components/input-activities/abstract-input-activity';\nimport * as i59 from './directives/interaction-context-trigger-for.directive';\nimport * as i60 from './activity';\nimport * as i61 from './components/activity-title/activity-title.component';\nimport * as i62 from './components/activity-body/activity-body.component';\nimport * as i63 from '../directives/highlight.pipe';\nimport * as i64 from '../directives/directives.module';\nimport * as i65 from '../components/components.module';\nexport const InteractionModuleNgFactory:i0.NgModuleFactory<i1.InteractionModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf<any> = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.Dir = (<any>(null as any));\nvar _decl0_12:i4.MatButton = (<any>(null as any));\nvar _decl0_13:i4.MatAnchor = (<any>(null as any));\nvar _decl0_14:i5.MatDialogContainer = (<any>(null as any));\nvar _decl0_15:i5.MatDialogClose = (<any>(null as any));\nvar _decl0_16:i5.MatDialogTitle = (<any>(null as any));\nvar _decl0_17:i5.MatDialogContent = (<any>(null as any));\nvar _decl0_18:i5.MatDialogActions = (<any>(null as any));\nvar _decl0_19:i6.MatTabGroup = (<any>(null as any));\nvar _decl0_20:i6.MatTabLabel = (<any>(null as any));\nvar _decl0_21:i6.MatTab = (<any>(null as any));\nvar _decl0_22:i6.MatTabNav = (<any>(null as any));\nvar _decl0_23:i6.MatTabLink = (<any>(null as any));\nvar _decl0_24:i6.MatTabContent = (<any>(null as any));\nvar _decl0_25:i7.CdkPortal = (<any>(null as any));\nvar _decl0_26:i7.CdkPortalOutlet = (<any>(null as any));\nvar _decl0_27:i7.TemplatePortalDirective = (<any>(null as any));\nvar _decl0_28:i7.PortalHostDirective = (<any>(null as any));\nvar _decl0_29:i8.RouterOutlet = (<any>(null as any));\nvar _decl0_30:i8.RouterLink = (<any>(null as any));\nvar _decl0_31:i8.RouterLinkWithHref = (<any>(null as any));\nvar _decl0_32:i8.RouterLinkActive = (<any>(null as any));\nvar _decl0_33:i8.ɵangular_packages_router_router_l = (<any>(null as any));\nvar _decl0_34:i9.MatIcon = (<any>(null as any));\nvar _decl0_35:i10.CommandDirective<any> = (<any>(null as any));\nvar _decl0_36:i11.FocusBindingDirective = (<any>(null as any));\nvar _decl0_37:i12.HighlightTextModelDirective = (<any>(null as any));\nvar _decl0_38:i13.DefaultLayoutDirective = (<any>(null as any));\nvar _decl0_39:i13.DefaultLayoutGapDirective = (<any>(null as any));\nvar _decl0_40:i13.DefaultLayoutAlignDirective = (<any>(null as any));\nvar _decl0_41:i13.DefaultFlexOrderDirective = (<any>(null as any));\nvar _decl0_42:i13.DefaultFlexOffsetDirective = (<any>(null as any));\nvar _decl0_43:i13.FlexFillDirective = (<any>(null as any));\nvar _decl0_44:i13.DefaultFlexAlignDirective = (<any>(null as any));\nvar _decl0_45:i13.DefaultFlexDirective = (<any>(null as any));\nvar _decl0_46:i14.ɵgrid_privatec = (<any>(null as any));\nvar _decl0_47:i14.ɵgrid_privatef = (<any>(null as any));\nvar _decl0_48:i14.ɵgrid_privatei = (<any>(null as any));\nvar _decl0_49:i14.ɵgrid_privatel = (<any>(null as any));\nvar _decl0_50:i14.ɵgrid_privateo = (<any>(null as any));\nvar _decl0_51:i14.ɵgrid_privater = (<any>(null as any));\nvar _decl0_52:i14.ɵgrid_privateu = (<any>(null as any));\nvar _decl0_53:i14.ɵgrid_privatex = (<any>(null as any));\nvar _decl0_54:i14.ɵgrid_privateba = (<any>(null as any));\nvar _decl0_55:i14.ɵgrid_privatebd = (<any>(null as any));\nvar _decl0_56:i14.ɵgrid_privatebg = (<any>(null as any));\nvar _decl0_57:i15.NumberInputComponent = (<any>(null as any));\nvar _decl0_58:i16.StringInputComponent = (<any>(null as any));\nvar _decl0_59:i17.TextInputComponent = (<any>(null as any));\nvar _decl0_60:i18.PasswordInputComponent = (<any>(null as any));\nvar _decl0_61:i19.CheckboxInputComponent = (<any>(null as any));\nvar _decl0_62:i20.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_63:i21.MultipleSelectInputComponent<any> = (<any>(null as any));\nvar _decl0_64:i22.AutocompleteInputComponent<any> = (<any>(null as any));\nvar _decl0_65:i23.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_66:i24.NoopComponent = (<any>(null as any));\nvar _decl0_67:i25.SwitchCaseComponent<any> = (<any>(null as any));\nvar _decl0_68:i25.SwitchCaseWhenDirective<any> = (<any>(null as any));\nvar _decl0_69:i25.SwitchCaseDefaultDirective<any> = (<any>(null as any));\nvar _decl0_70:i26.FocusContainerComponent = (<any>(null as any));\nvar _decl0_71:i27.VerticalFocusContainerComponent = (<any>(null as any));\nvar _decl0_72:i28.FocusableComponent = (<any>(null as any));\nvar _decl0_73:i29.CardContainerComponent = (<any>(null as any));\nvar _decl0_74:i30.TableComponent<any> = (<any>(null as any));\nvar _decl0_75:i31.EditRowControls<any> = (<any>(null as any));\nvar _decl0_76:i32.ColumnTemplateDirective = (<any>(null as any));\nvar _decl0_77:i33.IconComponent = (<any>(null as any));\nvar _decl0_78:i34.SectionHeaderComponent = (<any>(null as any));\nvar _decl0_79:i35.TableRowMenuComponent<any> = (<any>(null as any));\nvar _decl0_80:i36.ToolBarComponent = (<any>(null as any));\nvar _decl0_81:i37.CommandComponent = (<any>(null as any));\nvar _decl0_82:i38.PopupMenuComponent = (<any>(null as any));\nvar _decl0_83:i39.CommandFaceComponent<any> = (<any>(null as any));\nvar _decl0_84:i40.MoreMenuComponent = (<any>(null as any));\nvar _decl0_85:i41.SeparatorComponent = (<any>(null as any));\nvar _decl0_86:i42.FlexComponent = (<any>(null as any));\nvar _decl0_87:i43.TreeTableComponent<any> = (<any>(null as any));\nvar _decl0_88:i44.BusyOverlayComponent = (<any>(null as any));\nvar _decl0_89:i45.EmptyStateComponent = (<any>(null as any));\nvar _decl0_90:i46.PaginatorComponent = (<any>(null as any));\nvar _decl0_91:i47.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_92:i48.ConfirmationDialogComponent = (<any>(null as any));\nvar _decl0_93:i49.ConfirmThenDialogComponent<any,any,any> = (<any>(null as any));\nvar _decl0_94:i50.AlertDialogComponent = (<any>(null as any));\nvar _decl0_95:i51.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_96:i52.InPlaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_97:i53.AddItemInteractionContextComponent = (<any>(null as any));\nvar _decl0_98:i54.ActivityActionsComponent = (<any>(null as any));\nvar _decl0_99:i55.PopupInteractionContextComponent = (<any>(null as any));\nvar _decl0_100:i56.StringInputActivity = (<any>(null as any));\nvar _decl0_101:i57.SelectInputActivity<any> = (<any>(null as any));\nvar _decl0_102:i58.AbstractInputActivity<any,any> = (<any>(null as any));\nvar _decl0_103:i59.InteractionContextTriggerFor<any,any,any> = (<any>(null as any));\nvar _decl0_104:i60.Activity<any,any,any> = (<any>(null as any));\nvar _decl0_105:i61.ActivityTitleComponent = (<any>(null as any));\nvar _decl0_106:i62.ActivityBodyComponent = (<any>(null as any));\nvar _decl0_107:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_108:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_109:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_110:i2.JsonPipe = (<any>(null as any));\nvar _decl0_111:i2.SlicePipe = (<any>(null as any));\nvar _decl0_112:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_113:i2.PercentPipe = (<any>(null as any));\nvar _decl0_114:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_115:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_116:i2.DatePipe = (<any>(null as any));\nvar _decl0_117:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_118:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_119:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_120:i63.HighlightPipe = (<any>(null as any));\nvar _decl0_121:i2.CommonModule = (<any>(null as any));\nvar _decl0_122:i4.MatButtonModule = (<any>(null as any));\nvar _decl0_123:i5.MatDialogModule = (<any>(null as any));\nvar _decl0_124:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_125:i7.PortalModule = (<any>(null as any));\nvar _decl0_126:i8.RouterModule = (<any>(null as any));\nvar _decl0_127:i9.MatIconModule = (<any>(null as any));\nvar _decl0_128:i64.DirectivesModule = (<any>(null as any));\nvar _decl0_129:i13.FlexModule = (<any>(null as any));\nvar _decl0_130:i14.GridModule = (<any>(null as any));\nvar _decl0_131:i65.ComponentsModule = (<any>(null as any));\nvar _decl0_132:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_133:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_ActivityContainerComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityContainerComponent_1_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_91.busy;\n currVal_0;\n const currVal_1:any = !_any.focused;\n currVal_1;\n const currVal_2:any = _decl0_91;\n currVal_2;\n const currVal_3:any = _any;\n currVal_3;\n}\nfunction _View_ActivityContainerComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_91.dynamicHeight;\n currVal_0;\n const currVal_1:any = _decl0_19.dynamicHeight;\n currVal_1;\n const currVal_2:any = (_decl0_19.headerPosition === 'below');\n currVal_2;\n const currVal_3:any = !_decl0_91.dynamicHeight;\n currVal_3;\n const currVal_4:any = _decl0_91.activityRefs;\n currVal_4;\n const currVal_5:any = _decl0_91.activityIndex;\n currVal_5;\n}\nfunction _View_ConfirmationDialogComponent_Host_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_92.class;\n currVal_0;\n const currVal_1:any = _decl0_92.isFocused;\n currVal_1;\n}\nfunction _View_ConfirmationDialogComponent_2_1():void {\n if (_decl0_92.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_92.titleColor;\n currVal_0;\n const currVal_1:any = _decl0_105.hasTransparentBackground;\n currVal_1;\n const currVal_2:any = _decl0_105.color;\n currVal_2;\n const currVal_3:any = _decl0_92.confirm.title();\n currVal_3;\n }\n}\nfunction _View_ConfirmationDialogComponent_2_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmationDialogComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_92.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_106.fullWidth;\n currVal_1;\n const currVal_2:any = _decl0_92.confirm.content();\n currVal_2;\n const currVal_3:any = _decl0_92.confirmFace;\n currVal_3;\n const currVal_4:any = _decl0_92.cancelFace;\n currVal_4;\n const currVal_5:any = _decl0_98.alignEnd;\n currVal_5;\n const currVal_6:any = _decl0_98.alignStretch;\n currVal_6;\n}\nfunction _View_ConfirmThenDialogComponent_Host_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_93.class;\n currVal_0;\n const currVal_1:any = _decl0_93.isFocused;\n currVal_1;\n}\nfunction _View_ConfirmThenDialogComponent_3_1():void {\n if (_decl0_93.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_93.titleColor;\n currVal_0;\n const currVal_1:any = _decl0_105.hasTransparentBackground;\n currVal_1;\n const currVal_2:any = _decl0_105.color;\n currVal_2;\n const currVal_3:any = _decl0_93.confirm.title();\n currVal_3;\n }\n}\nfunction _View_ConfirmThenDialogComponent_3_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmThenDialogComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_93.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_106.fullWidth;\n currVal_1;\n const currVal_2:any = _decl0_93.confirm.content();\n currVal_2;\n const currVal_3:any = _decl0_93.confirmFace;\n currVal_3;\n const currVal_4:any = _decl0_93.cancelFace;\n currVal_4;\n const currVal_5:any = _decl0_98.alignEnd;\n currVal_5;\n const currVal_6:any = _decl0_98.alignStretch;\n currVal_6;\n}\nfunction _View_AlertDialogComponent_Host_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_94.class;\n currVal_0;\n const currVal_1:any = _decl0_94.isFocused;\n currVal_1;\n}\nfunction _View_AlertDialogComponent_4_1():void {\n if (_decl0_94.alert.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_105.hasTransparentBackground;\n currVal_0;\n const currVal_1:any = _decl0_105.color;\n currVal_1;\n const currVal_2:any = _decl0_94.alert.title();\n currVal_2;\n }\n}\nfunction _View_AlertDialogComponent_4_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_AlertDialogComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_94.alert.title;\n currVal_0;\n const currVal_1:any = _decl0_106.fullWidth;\n currVal_1;\n const currVal_2:any = _decl0_94.alert.content();\n currVal_2;\n const currVal_3:any = _decl0_94.confirmFace;\n currVal_3;\n const currVal_4:any = _decl0_98.alignEnd;\n currVal_4;\n const currVal_5:any = _decl0_98.alignStretch;\n currVal_5;\n}\nfunction _View_ActivityOutletComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityOutletComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InPlaceInteractionContextComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InPlaceInteractionContextComponent_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = false;\n currVal_0;\n const currVal_1:any = (_decl0_96.isActive()? 1: 0);\n currVal_1;\n const currVal_2:any = _decl0_96.animationDuration;\n currVal_2;\n const currVal_3:any = _decl0_19.dynamicHeight;\n currVal_3;\n const currVal_4:any = (_decl0_19.headerPosition === 'below');\n currVal_4;\n const currVal_5:any = false;\n currVal_5;\n}\nfunction _View_AddItemInteractionContextComponent_Host_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_97.active;\n currVal_0;\n const currVal_1:any = _decl0_97.tabindex;\n currVal_1;\n}\nfunction _View_AddItemInteractionContextComponent_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = false;\n currVal_0;\n const currVal_1:any = _decl0_97.clickCommand;\n currVal_1;\n const currVal_2:any = _decl0_97.icon;\n currVal_2;\n const currVal_3:any = _decl0_97.label;\n currVal_3;\n const pd_4:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n}\nfunction _View_ActivityActionsComponent_Host_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_98.alignEnd;\n currVal_0;\n const currVal_1:any = _decl0_98.alignStretch;\n currVal_1;\n}\nfunction _View_ActivityActionsComponent_8_1():void {\n if (_decl0_98.hasConfirmFace()) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_98.confirmCommand;\n currVal_0;\n const currVal_1:any = _decl0_98.confirmFace;\n currVal_1;\n }\n}\nfunction _View_ActivityActionsComponent_8_2():void {\n if (_decl0_98.hasCancelFace()) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_98.cancelCommand;\n currVal_0;\n const currVal_1:any = _decl0_98.cancelFace;\n currVal_1;\n }\n}\nfunction _View_ActivityActionsComponent_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_98.hasConfirmFace();\n currVal_0;\n const currVal_1:any = _decl0_98.hasCancelFace();\n currVal_1;\n}\nfunction _View_PopupInteractionContextComponent_Host_9_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_99.active;\n currVal_0;\n}\nfunction _View_PopupInteractionContextComponent_9_0():void {\n var _any:any = (null as any);\n}\nfunction _View_StringInputActivity_Host_10_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_100.class;\n currVal_0;\n const currVal_1:any = _decl0_100.isFocused;\n currVal_1;\n}\nfunction _View_StringInputActivity_10_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_100.data.label;\n currVal_0;\n const currVal_1:any = _decl0_100.data.placeholder;\n currVal_1;\n const currVal_2:any = _decl0_100.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_100.cancelCommand;\n currVal_3;\n const currVal_4:any = _decl0_100.valueModel;\n currVal_4;\n const currVal_5:any = _decl0_58.dense;\n currVal_5;\n const currVal_6:any = _decl0_58.baseClassName;\n currVal_6;\n const currVal_7:any = _decl0_100.data.buttonStyle;\n currVal_7;\n const currVal_8:any = 'end';\n currVal_8;\n const currVal_9:any = _decl0_98.alignEnd;\n currVal_9;\n const currVal_10:any = _decl0_98.alignStretch;\n currVal_10;\n const pd_11:any = ((<any>_decl0_58.notifyClick()) !== false);\n const pd_12:any = ((<any>_decl0_58.notifyFocusIn()) !== false);\n const pd_13:any = ((<any>_decl0_58.notifyFocusOut()) !== false);\n}\nfunction _View_SelectInputActivity_Host_11_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_101.class;\n currVal_0;\n const currVal_1:any = _decl0_101.isFocused;\n currVal_1;\n}\nfunction _View_SelectInputActivity_11_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_101.data.label;\n currVal_0;\n const currVal_1:any = _decl0_101.data.placeholder;\n currVal_1;\n const currVal_2:any = _decl0_101.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_101.cancelCommand;\n currVal_3;\n const currVal_4:any = _decl0_101.valueModel;\n currVal_4;\n const currVal_5:any = _decl0_101.options;\n currVal_5;\n const currVal_6:any = _decl0_101.optionLabelFormat;\n currVal_6;\n const currVal_7:any = _decl0_62.dense;\n currVal_7;\n const currVal_8:any = _decl0_62.baseClassName;\n currVal_8;\n const currVal_9:any = _decl0_101.data.buttonStyle;\n currVal_9;\n const currVal_10:any = 'end';\n currVal_10;\n const currVal_11:any = _decl0_98.alignEnd;\n currVal_11;\n const currVal_12:any = _decl0_98.alignStretch;\n currVal_12;\n const pd_13:any = ((<any>_decl0_62.notifyClick()) !== false);\n const pd_14:any = ((<any>_decl0_62.notifyFocusIn()) !== false);\n const pd_15:any = ((<any>_decl0_62.notifyFocusOut()) !== false);\n}\nfunction _View_AbstractInputActivity_Host_12_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_102.class;\n currVal_0;\n const currVal_1:any = _decl0_102.isFocused;\n currVal_1;\n}\nfunction _View_AbstractInputActivity_12_0():void {\n var _any:any = (null as any);\n}\nfunction _View_Activity_Host_13_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_104.class;\n currVal_0;\n const currVal_1:any = _decl0_104.isFocused;\n currVal_1;\n}\nfunction _View_Activity_13_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityTitleComponent_Host_14_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_105.hasTransparentBackground;\n currVal_0;\n const currVal_1:any = _decl0_105.color;\n currVal_1;\n}\nfunction _View_ActivityTitleComponent_14_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityBodyComponent_Host_15_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_106.fullWidth;\n currVal_0;\n}\nfunction _View_ActivityBodyComponent_15_0():void {\n var _any:any = (null as any);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interaction.module.ngfactory.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/interaction/interaction.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './interaction.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from '@angular/material/button';\nimport * as i5 from '@angular/material/dialog';\nimport * as i6 from '@angular/material/tabs';\nimport * as i7 from '@angular/cdk/portal';\nimport * as i8 from '@angular/router';\nimport * as i9 from '@angular/material/icon';\nimport * as i10 from '../directives/command.directive';\nimport * as i11 from '../directives/focus-binding.directive';\nimport * as i12 from '@angular/flex-layout/flex';\nimport * as i13 from '@angular/flex-layout/grid';\nimport * as i14 from '../components/forms/number-input/number-input.component';\nimport * as i15 from '../components/forms/string-input/string-input.component';\nimport * as i16 from '../components/forms/text-input/text-input.component';\nimport * as i17 from '../components/forms/password-input/password-input.component';\nimport * as i18 from '../components/forms/checkbox-input/checkbox-input.component';\nimport * as i19 from '../components/forms/select-input/select-input.component';\nimport * as i20 from '../components/forms/multiple-select-input/multiple-select-input.component';\nimport * as i21 from '../components/forms/autocomplete-input/autocomplete-input.component';\nimport * as i22 from '../components/scroll-container/scroll-container.component';\nimport * as i23 from '../components/noop/noop.component';\nimport * as i24 from '../components/switch-case/switch-case.component';\nimport * as i25 from '../components/focus-container/focus-container.component';\nimport * as i26 from '../components/vertical-focus-container/vertical-focus-container.component';\nimport * as i27 from '../components/focusable.component';\nimport * as i28 from '../components/card-container/card-container.component';\nimport * as i29 from '../components/table/table.component';\nimport * as i30 from '../components/table/edit-row-controls/edit-row-controls.component';\nimport * as i31 from '../components/table/column-template/column-template.directive';\nimport * as i32 from '../components/icon/icon.component';\nimport * as i33 from '../components/section-header/section-header.component';\nimport * as i34 from '../components/table/table-row-menu/table-row-menu.component';\nimport * as i35 from '../components/commands/group/tool-bar/tool-bar.component';\nimport * as i36 from '../components/commands/command/command.component';\nimport * as i37 from '../components/commands/group/popup-menu/popup-menu.component';\nimport * as i38 from '../components/commands/command-face/command-face.component';\nimport * as i39 from '../components/commands/group/popup-menu/more-menu.component';\nimport * as i40 from '../components/commands/separator.component';\nimport * as i41 from '../components/commands/flex.component';\nimport * as i42 from '../components/tree-table/tree-table-component';\nimport * as i43 from '../components/busy-overlay/busy-overlay.component';\nimport * as i44 from '../components/empty-state/empty-state.component';\nimport * as i45 from '../components/table/paginator/paginator.component';\nimport * as i46 from './components/activity-container/activity-container.component';\nimport * as i47 from './components/confirmation-dialog/confirmation-dialog.component';\nimport * as i48 from './components/confirm-then-dialog/confirm-then-dialog.component';\nimport * as i49 from './components/alert-dialog/alert-dialog.component';\nimport * as i50 from './components/activity-container/activity-outlet/activity-outlet.component';\nimport * as i51 from './components/inplace-interaction-context/in-place-interaction-context.component';\nimport * as i52 from './components/add-item-interaction-context/add-item-interaction-context.component';\nimport * as i53 from './components/activity-actions/activity-actions.component';\nimport * as i54 from './components/popup-interaction-context/popup-interaction-context.component';\nimport * as i55 from './components/input-activities/string-input-activity';\nimport * as i56 from './components/input-activities/select-input-activity';\nimport * as i57 from './components/input-activities/abstract-input-activity';\nimport * as i58 from './directives/interaction-context-trigger-for.directive';\nimport * as i59 from './activity';\nimport * as i60 from './components/activity-title/activity-title.component';\nimport * as i61 from './components/activity-body/activity-body.component';\nimport * as i62 from '../directives/directives.module';\nimport * as i63 from '../components/components.module';\nexport const InteractionModuleNgFactory:i0.NgModuleFactory<i1.InteractionModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf<any> = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.Dir = (<any>(null as any));\nvar _decl0_12:i4.MatButton = (<any>(null as any));\nvar _decl0_13:i4.MatAnchor = (<any>(null as any));\nvar _decl0_14:i5.MatDialogContainer = (<any>(null as any));\nvar _decl0_15:i5.MatDialogClose = (<any>(null as any));\nvar _decl0_16:i5.MatDialogTitle = (<any>(null as any));\nvar _decl0_17:i5.MatDialogContent = (<any>(null as any));\nvar _decl0_18:i5.MatDialogActions = (<any>(null as any));\nvar _decl0_19:i6.MatTabGroup = (<any>(null as any));\nvar _decl0_20:i6.MatTabLabel = (<any>(null as any));\nvar _decl0_21:i6.MatTab = (<any>(null as any));\nvar _decl0_22:i6.MatTabNav = (<any>(null as any));\nvar _decl0_23:i6.MatTabLink = (<any>(null as any));\nvar _decl0_24:i6.MatTabContent = (<any>(null as any));\nvar _decl0_25:i7.CdkPortal = (<any>(null as any));\nvar _decl0_26:i7.CdkPortalOutlet = (<any>(null as any));\nvar _decl0_27:i7.TemplatePortalDirective = (<any>(null as any));\nvar _decl0_28:i7.PortalHostDirective = (<any>(null as any));\nvar _decl0_29:i8.RouterOutlet = (<any>(null as any));\nvar _decl0_30:i8.RouterLink = (<any>(null as any));\nvar _decl0_31:i8.RouterLinkWithHref = (<any>(null as any));\nvar _decl0_32:i8.RouterLinkActive = (<any>(null as any));\nvar _decl0_33:i8.ɵangular_packages_router_router_l = (<any>(null as any));\nvar _decl0_34:i9.MatIcon = (<any>(null as any));\nvar _decl0_35:i10.CommandDirective<any> = (<any>(null as any));\nvar _decl0_36:i11.FocusBindingDirective = (<any>(null as any));\nvar _decl0_37:i12.DefaultLayoutDirective = (<any>(null as any));\nvar _decl0_38:i12.DefaultLayoutGapDirective = (<any>(null as any));\nvar _decl0_39:i12.DefaultLayoutAlignDirective = (<any>(null as any));\nvar _decl0_40:i12.DefaultFlexOrderDirective = (<any>(null as any));\nvar _decl0_41:i12.DefaultFlexOffsetDirective = (<any>(null as any));\nvar _decl0_42:i12.FlexFillDirective = (<any>(null as any));\nvar _decl0_43:i12.DefaultFlexAlignDirective = (<any>(null as any));\nvar _decl0_44:i12.DefaultFlexDirective = (<any>(null as any));\nvar _decl0_45:i13.ɵgrid_privatec = (<any>(null as any));\nvar _decl0_46:i13.ɵgrid_privatef = (<any>(null as any));\nvar _decl0_47:i13.ɵgrid_privatei = (<any>(null as any));\nvar _decl0_48:i13.ɵgrid_privatel = (<any>(null as any));\nvar _decl0_49:i13.ɵgrid_privateo = (<any>(null as any));\nvar _decl0_50:i13.ɵgrid_privater = (<any>(null as any));\nvar _decl0_51:i13.ɵgrid_privateu = (<any>(null as any));\nvar _decl0_52:i13.ɵgrid_privatex = (<any>(null as any));\nvar _decl0_53:i13.ɵgrid_privateba = (<any>(null as any));\nvar _decl0_54:i13.ɵgrid_privatebd = (<any>(null as any));\nvar _decl0_55:i13.ɵgrid_privatebg = (<any>(null as any));\nvar _decl0_56:i14.NumberInputComponent = (<any>(null as any));\nvar _decl0_57:i15.StringInputComponent = (<any>(null as any));\nvar _decl0_58:i16.TextInputComponent = (<any>(null as any));\nvar _decl0_59:i17.PasswordInputComponent = (<any>(null as any));\nvar _decl0_60:i18.CheckboxInputComponent = (<any>(null as any));\nvar _decl0_61:i19.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_62:i20.MultipleSelectInputComponent<any> = (<any>(null as any));\nvar _decl0_63:i21.AutocompleteInputComponent<any> = (<any>(null as any));\nvar _decl0_64:i22.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_65:i23.NoopComponent = (<any>(null as any));\nvar _decl0_66:i24.SwitchCaseComponent<any> = (<any>(null as any));\nvar _decl0_67:i24.SwitchCaseWhenDirective<any> = (<any>(null as any));\nvar _decl0_68:i24.SwitchCaseDefaultDirective<any> = (<any>(null as any));\nvar _decl0_69:i25.FocusContainerComponent = (<any>(null as any));\nvar _decl0_70:i26.VerticalFocusContainerComponent = (<any>(null as any));\nvar _decl0_71:i27.FocusableComponent = (<any>(null as any));\nvar _decl0_72:i28.CardContainerComponent = (<any>(null as any));\nvar _decl0_73:i29.TableComponent<any> = (<any>(null as any));\nvar _decl0_74:i30.EditRowControls<any> = (<any>(null as any));\nvar _decl0_75:i31.ColumnTemplateDirective = (<any>(null as any));\nvar _decl0_76:i32.IconComponent = (<any>(null as any));\nvar _decl0_77:i33.SectionHeaderComponent = (<any>(null as any));\nvar _decl0_78:i34.TableRowMenuComponent<any> = (<any>(null as any));\nvar _decl0_79:i35.ToolBarComponent = (<any>(null as any));\nvar _decl0_80:i36.CommandComponent = (<any>(null as any));\nvar _decl0_81:i37.PopupMenuComponent = (<any>(null as any));\nvar _decl0_82:i38.CommandFaceComponent<any> = (<any>(null as any));\nvar _decl0_83:i39.MoreMenuComponent = (<any>(null as any));\nvar _decl0_84:i40.SeparatorComponent = (<any>(null as any));\nvar _decl0_85:i41.FlexComponent = (<any>(null as any));\nvar _decl0_86:i42.TreeTableComponent<any> = (<any>(null as any));\nvar _decl0_87:i43.BusyOverlayComponent = (<any>(null as any));\nvar _decl0_88:i44.EmptyStateComponent = (<any>(null as any));\nvar _decl0_89:i45.PaginatorComponent = (<any>(null as any));\nvar _decl0_90:i46.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_91:i47.ConfirmationDialogComponent = (<any>(null as any));\nvar _decl0_92:i48.ConfirmThenDialogComponent<any,any,any> = (<any>(null as any));\nvar _decl0_93:i49.AlertDialogComponent = (<any>(null as any));\nvar _decl0_94:i50.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_95:i51.InPlaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_96:i52.AddItemInteractionContextComponent = (<any>(null as any));\nvar _decl0_97:i53.ActivityActionsComponent = (<any>(null as any));\nvar _decl0_98:i54.PopupInteractionContextComponent = (<any>(null as any));\nvar _decl0_99:i55.StringInputActivity = (<any>(null as any));\nvar _decl0_100:i56.SelectInputActivity<any> = (<any>(null as any));\nvar _decl0_101:i57.AbstractInputActivity<any,any> = (<any>(null as any));\nvar _decl0_102:i58.InteractionContextTriggerFor<any,any,any> = (<any>(null as any));\nvar _decl0_103:i59.Activity<any,any,any> = (<any>(null as any));\nvar _decl0_104:i60.ActivityTitleComponent = (<any>(null as any));\nvar _decl0_105:i61.ActivityBodyComponent = (<any>(null as any));\nvar _decl0_106:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_107:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_108:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_109:i2.JsonPipe = (<any>(null as any));\nvar _decl0_110:i2.SlicePipe = (<any>(null as any));\nvar _decl0_111:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_112:i2.PercentPipe = (<any>(null as any));\nvar _decl0_113:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_114:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_115:i2.DatePipe = (<any>(null as any));\nvar _decl0_116:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_117:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_118:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_119:i2.CommonModule = (<any>(null as any));\nvar _decl0_120:i4.MatButtonModule = (<any>(null as any));\nvar _decl0_121:i5.MatDialogModule = (<any>(null as any));\nvar _decl0_122:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_123:i7.PortalModule = (<any>(null as any));\nvar _decl0_124:i8.RouterModule = (<any>(null as any));\nvar _decl0_125:i9.MatIconModule = (<any>(null as any));\nvar _decl0_126:i62.DirectivesModule = (<any>(null as any));\nvar _decl0_127:i12.FlexModule = (<any>(null as any));\nvar _decl0_128:i13.GridModule = (<any>(null as any));\nvar _decl0_129:i63.ComponentsModule = (<any>(null as any));\nvar _decl0_130:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_131:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_ActivityContainerComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityContainerComponent_1_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_90.busy;\n currVal_0;\n const currVal_1:any = !_any.focused;\n currVal_1;\n const currVal_2:any = _decl0_90;\n currVal_2;\n const currVal_3:any = _any;\n currVal_3;\n}\nfunction _View_ActivityContainerComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_90.dynamicHeight;\n currVal_0;\n const currVal_1:any = _decl0_19.dynamicHeight;\n currVal_1;\n const currVal_2:any = (_decl0_19.headerPosition === 'below');\n currVal_2;\n const currVal_3:any = !_decl0_90.dynamicHeight;\n currVal_3;\n const currVal_4:any = _decl0_90.activityRefs;\n currVal_4;\n const currVal_5:any = _decl0_90.activityIndex;\n currVal_5;\n}\nfunction _View_ConfirmationDialogComponent_Host_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_91.class;\n currVal_0;\n const currVal_1:any = _decl0_91.isFocused;\n currVal_1;\n}\nfunction _View_ConfirmationDialogComponent_2_1():void {\n if (_decl0_91.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_91.titleColor;\n currVal_0;\n const currVal_1:any = _decl0_104.hasTransparentBackground;\n currVal_1;\n const currVal_2:any = _decl0_104.color;\n currVal_2;\n const currVal_3:any = _decl0_91.confirm.title();\n currVal_3;\n }\n}\nfunction _View_ConfirmationDialogComponent_2_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmationDialogComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_91.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_105.fullWidth;\n currVal_1;\n const currVal_2:any = _decl0_91.confirm.content();\n currVal_2;\n const currVal_3:any = _decl0_91.confirmFace;\n currVal_3;\n const currVal_4:any = _decl0_91.cancelFace;\n currVal_4;\n const currVal_5:any = _decl0_97.alignEnd;\n currVal_5;\n const currVal_6:any = _decl0_97.alignStretch;\n currVal_6;\n}\nfunction _View_ConfirmThenDialogComponent_Host_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_92.class;\n currVal_0;\n const currVal_1:any = _decl0_92.isFocused;\n currVal_1;\n}\nfunction _View_ConfirmThenDialogComponent_3_1():void {\n if (_decl0_92.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_92.titleColor;\n currVal_0;\n const currVal_1:any = _decl0_104.hasTransparentBackground;\n currVal_1;\n const currVal_2:any = _decl0_104.color;\n currVal_2;\n const currVal_3:any = _decl0_92.confirm.title();\n currVal_3;\n }\n}\nfunction _View_ConfirmThenDialogComponent_3_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmThenDialogComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_92.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_105.fullWidth;\n currVal_1;\n const currVal_2:any = _decl0_92.confirm.content();\n currVal_2;\n const currVal_3:any = _decl0_92.confirmFace;\n currVal_3;\n const currVal_4:any = _decl0_92.cancelFace;\n currVal_4;\n const currVal_5:any = _decl0_97.alignEnd;\n currVal_5;\n const currVal_6:any = _decl0_97.alignStretch;\n currVal_6;\n}\nfunction _View_AlertDialogComponent_Host_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_93.class;\n currVal_0;\n const currVal_1:any = _decl0_93.isFocused;\n currVal_1;\n}\nfunction _View_AlertDialogComponent_4_1():void {\n if (_decl0_93.alert.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_104.hasTransparentBackground;\n currVal_0;\n const currVal_1:any = _decl0_104.color;\n currVal_1;\n const currVal_2:any = _decl0_93.alert.title();\n currVal_2;\n }\n}\nfunction _View_AlertDialogComponent_4_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_AlertDialogComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_93.alert.title;\n currVal_0;\n const currVal_1:any = _decl0_105.fullWidth;\n currVal_1;\n const currVal_2:any = _decl0_93.alert.content();\n currVal_2;\n const currVal_3:any = _decl0_93.confirmFace;\n currVal_3;\n const currVal_4:any = _decl0_97.alignEnd;\n currVal_4;\n const currVal_5:any = _decl0_97.alignStretch;\n currVal_5;\n}\nfunction _View_ActivityOutletComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityOutletComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InPlaceInteractionContextComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InPlaceInteractionContextComponent_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = false;\n currVal_0;\n const currVal_1:any = (_decl0_95.isActive()? 1: 0);\n currVal_1;\n const currVal_2:any = _decl0_95.animationDuration;\n currVal_2;\n const currVal_3:any = _decl0_19.dynamicHeight;\n currVal_3;\n const currVal_4:any = (_decl0_19.headerPosition === 'below');\n currVal_4;\n const currVal_5:any = false;\n currVal_5;\n}\nfunction _View_AddItemInteractionContextComponent_Host_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_96.active;\n currVal_0;\n const currVal_1:any = _decl0_96.tabindex;\n currVal_1;\n}\nfunction _View_AddItemInteractionContextComponent_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = false;\n currVal_0;\n const currVal_1:any = _decl0_96.clickCommand;\n currVal_1;\n const currVal_2:any = _decl0_96.icon;\n currVal_2;\n const currVal_3:any = _decl0_96.label;\n currVal_3;\n const pd_4:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n}\nfunction _View_ActivityActionsComponent_Host_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_97.alignEnd;\n currVal_0;\n const currVal_1:any = _decl0_97.alignStretch;\n currVal_1;\n}\nfunction _View_ActivityActionsComponent_8_1():void {\n if (_decl0_97.hasConfirmFace()) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_97.confirmCommand;\n currVal_0;\n const currVal_1:any = _decl0_97.confirmFace;\n currVal_1;\n }\n}\nfunction _View_ActivityActionsComponent_8_2():void {\n if (_decl0_97.hasCancelFace()) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_97.cancelCommand;\n currVal_0;\n const currVal_1:any = _decl0_97.cancelFace;\n currVal_1;\n }\n}\nfunction _View_ActivityActionsComponent_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_97.hasConfirmFace();\n currVal_0;\n const currVal_1:any = _decl0_97.hasCancelFace();\n currVal_1;\n}\nfunction _View_PopupInteractionContextComponent_Host_9_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_98.active;\n currVal_0;\n}\nfunction _View_PopupInteractionContextComponent_9_0():void {\n var _any:any = (null as any);\n}\nfunction _View_StringInputActivity_Host_10_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_99.class;\n currVal_0;\n const currVal_1:any = _decl0_99.isFocused;\n currVal_1;\n}\nfunction _View_StringInputActivity_10_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_99.data.label;\n currVal_0;\n const currVal_1:any = _decl0_99.data.placeholder;\n currVal_1;\n const currVal_2:any = _decl0_99.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_99.cancelCommand;\n currVal_3;\n const currVal_4:any = _decl0_99.valueModel;\n currVal_4;\n const currVal_5:any = _decl0_57.dense;\n currVal_5;\n const currVal_6:any = _decl0_57.baseClassName;\n currVal_6;\n const currVal_7:any = _decl0_99.data.buttonStyle;\n currVal_7;\n const currVal_8:any = 'end';\n currVal_8;\n const currVal_9:any = _decl0_97.alignEnd;\n currVal_9;\n const currVal_10:any = _decl0_97.alignStretch;\n currVal_10;\n const pd_11:any = ((<any>_decl0_57.notifyClick()) !== false);\n const pd_12:any = ((<any>_decl0_57.notifyFocusIn()) !== false);\n const pd_13:any = ((<any>_decl0_57.notifyFocusOut()) !== false);\n}\nfunction _View_SelectInputActivity_Host_11_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_100.class;\n currVal_0;\n const currVal_1:any = _decl0_100.isFocused;\n currVal_1;\n}\nfunction _View_SelectInputActivity_11_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_100.data.label;\n currVal_0;\n const currVal_1:any = _decl0_100.data.placeholder;\n currVal_1;\n const currVal_2:any = _decl0_100.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_100.cancelCommand;\n currVal_3;\n const currVal_4:any = _decl0_100.valueModel;\n currVal_4;\n const currVal_5:any = _decl0_100.options;\n currVal_5;\n const currVal_6:any = _decl0_100.optionLabelFormat;\n currVal_6;\n const currVal_7:any = _decl0_61.dense;\n currVal_7;\n const currVal_8:any = _decl0_61.baseClassName;\n currVal_8;\n const currVal_9:any = _decl0_100.data.buttonStyle;\n currVal_9;\n const currVal_10:any = 'end';\n currVal_10;\n const currVal_11:any = _decl0_97.alignEnd;\n currVal_11;\n const currVal_12:any = _decl0_97.alignStretch;\n currVal_12;\n const pd_13:any = ((<any>_decl0_61.notifyClick()) !== false);\n const pd_14:any = ((<any>_decl0_61.notifyFocusIn()) !== false);\n const pd_15:any = ((<any>_decl0_61.notifyFocusOut()) !== false);\n}\nfunction _View_AbstractInputActivity_Host_12_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_101.class;\n currVal_0;\n const currVal_1:any = _decl0_101.isFocused;\n currVal_1;\n}\nfunction _View_AbstractInputActivity_12_0():void {\n var _any:any = (null as any);\n}\nfunction _View_Activity_Host_13_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_103.class;\n currVal_0;\n const currVal_1:any = _decl0_103.isFocused;\n currVal_1;\n}\nfunction _View_Activity_13_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityTitleComponent_Host_14_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_104.hasTransparentBackground;\n currVal_0;\n const currVal_1:any = _decl0_104.color;\n currVal_1;\n}\nfunction _View_ActivityTitleComponent_14_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityBodyComponent_Host_15_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_105.fullWidth;\n currVal_0;\n}\nfunction _View_ActivityBodyComponent_15_0():void {\n var _any:any = (null as any);\n}\n"]}
|
|
@@ -14,7 +14,6 @@ export class AbstractPlaceNavigationComponent extends DisposableComponent {
|
|
|
14
14
|
super();
|
|
15
15
|
this.placeRouter = placeRouter;
|
|
16
16
|
this._activePlaceComponent = new DelegatingValueModel();
|
|
17
|
-
this.trackByPlaceDef = (data) => data.place;
|
|
18
17
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
19
18
|
this.placeDefinitions = chain(this.placesModel)
|
|
20
19
|
.map(c => PlaceComponent.getDefinition(c))
|
|
@@ -26,24 +25,13 @@ export class AbstractPlaceNavigationComponent extends DisposableComponent {
|
|
|
26
25
|
this.commandFactory = Command.createFactory((placeDefinition) => {
|
|
27
26
|
this.placeOutlet.navigate(new Visit(placeDefinition));
|
|
28
27
|
});
|
|
29
|
-
when(this.placeOutletModel).changes(outlet =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
active: this.activePlaceDefinition.value === d
|
|
35
|
-
};
|
|
36
|
-
}, {
|
|
37
|
-
dependsOn: this.activePlaceDefinition
|
|
28
|
+
when(this.placeOutletModel).changes(outlet => {
|
|
29
|
+
// NOTE: this updates during a change cycle and causes our isActiveMethod to return 2 different
|
|
30
|
+
// values in the one change detection cycle. So instead we delay the update to a different
|
|
31
|
+
// tick.
|
|
32
|
+
setTimeout(() => this._activePlaceComponent.setDelegate(outlet ? outlet.activePlaceModel : null));
|
|
38
33
|
});
|
|
39
|
-
|
|
40
|
-
// txo.observe('this.placesModel', this.placesModel);
|
|
41
|
-
// txo.observe('this.placeDefinitions', this.placeDefinitions);
|
|
42
|
-
// txo.observe('this.activePlaceDefinition', this.activePlaceDefinition);
|
|
43
|
-
// txo.observe('this.menuItems', this.menuItems);
|
|
44
|
-
}
|
|
45
|
-
handlePlaceOutLetChanged(outlet) {
|
|
46
|
-
this._activePlaceComponent.setDelegate(outlet ? outlet.activePlaceModel : null);
|
|
34
|
+
this.activePlaceDefinition = chain(this._activePlaceComponent).pluck('placeDefinition');
|
|
47
35
|
}
|
|
48
36
|
getNavigationFace(placeDef) {
|
|
49
37
|
const navItem = placeDef.getPlaceData('nav');
|
|
@@ -53,6 +41,9 @@ export class AbstractPlaceNavigationComponent extends DisposableComponent {
|
|
|
53
41
|
icon: () => navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null)
|
|
54
42
|
};
|
|
55
43
|
}
|
|
44
|
+
isActive(place) {
|
|
45
|
+
return this.activePlaceDefinition.query().equals(place);
|
|
46
|
+
}
|
|
56
47
|
ngOnInit() {
|
|
57
48
|
}
|
|
58
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-place-navigation.component.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/place/components/abstract-place-navigation.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EACL,OAAO,EAEP,oBAAoB,EACpB,GAAG,EACH,SAAS,EAET,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,
|
|
1
|
+
{"version":3,"file":"abstract-place-navigation.component.js","sourceRoot":"","sources":["../../../../../../../libs/angular-ui-powerups/src/lib/place/components/abstract-place-navigation.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EACL,OAAO,EAEP,oBAAoB,EACpB,GAAG,EACH,SAAS,EAET,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,UAAU,EAEX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAE5E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAK7E,MAA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U,iBAAiB,CAAC,kBAAkB,CAAC;8BAClC,oBAAoB;qEAAC;AAGlC;IADU,aAAa,EAAE;8BACP,UAAU;0EAAuB;AAkCnD;IADC,OAAO,EAAE;;qCACkB,eAAe;;yEAO1C","sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport {\n Command,\n Constructable,\n DelegatingValueModel,\n Dsl,\n ListModel,\n ListModelChain,\n StoreInListModel,\n StoreInValueModel,\n TrackExternal,\n ValueModel,\n ValueModelChain\n} from '@coolon/pectin';\nimport { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';\nimport { CommandFace } from '../../components/commands/command-face';\nimport { DisposableComponent } from '../../components/disposable-component';\nimport { NavItem } from '../nav-item';\nimport { PlaceComponent } from '../place-component';\nimport { PlaceDefinition } from '../place-definition';\nimport { PlaceRouter } from '../place-router';\nimport { Visit } from '../visit';\nimport { PlaceOutletComponent } from './place-outlet/place-outlet.component';\n\n@Component({\n template: ''\n})\nexport class AbstractPlaceNavigationComponent extends DisposableComponent implements OnInit {\n\n @Input() @StoreInListModel('placesModel')\n places: Constructable<PlaceComponent>[];\n\n @Input() @TrackExternal()\n placesModel: ListModel<Constructable<PlaceComponent>>;\n\n\n @Input() @StoreInValueModel('placeOutletModel')\n placeOutlet: PlaceOutletComponent;\n\n @Input() @TrackExternal()\n placeOutletModel: ValueModel<PlaceOutletComponent>;\n\n readonly placeDefinitions: ListModelChain<PlaceDefinition>;\n\n readonly commandFactory: Command.Factory<PlaceDefinition, void>;\n readonly _activePlaceComponent = new DelegatingValueModel<PlaceComponent>();\n private activePlaceDefinition: ValueModelChain<PlaceDefinition>;\n\n constructor(readonly placeRouter: PlaceRouter) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.placeDefinitions = chain(this.placesModel)\n .map(c => PlaceComponent.getDefinition(c))\n .select(d => {\n const guard = placeRouter.accessGuard.value;\n const state = placeRouter.state.value;\n return guard.isAuthorised(d) || state.isPlaceActive(d);\n }, { dependsOn: [placeRouter.accessGuard, placeRouter.state] });\n\n this.commandFactory = Command.createFactory((placeDefinition: PlaceDefinition) => {\n this.placeOutlet.navigate(new Visit(placeDefinition));\n });\n\n when(this.placeOutletModel).changes(outlet => {\n // NOTE: this updates during a change cycle and causes our isActiveMethod to return 2 different\n // values in the one change detection cycle. So instead we delay the update to a different\n // tick.\n setTimeout(() => this._activePlaceComponent.setDelegate(outlet ? outlet.activePlaceModel : null));\n });\n this.activePlaceDefinition = chain(this._activePlaceComponent).pluck('placeDefinition');\n }\n\n\n @Memoize()\n getNavigationFace(placeDef: PlaceDefinition): CommandFace {\n const navItem = placeDef.getPlaceData('nav') as NavItem;\n return {\n text: () => navItem ? navItem.title() : placeDef.searchPlaceData(['navTitle', 'title']),\n tooltip: () => navItem && navItem.tooltip ? navItem.tooltip() : placeDef.getPlaceData('navTooltip', null),\n icon: () => navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null)\n };\n }\n\n isActive(place: PlaceDefinition): boolean {\n return this.activePlaceDefinition.query().equals(place);\n }\n\n ngOnInit() {\n }\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"AbstractPlaceNavigationComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../components/disposable-component","name":"DisposableComponent","line":
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"AbstractPlaceNavigationComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../components/disposable-component","name":"DisposableComponent","line":27,"character":54},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":24,"character":1},"arguments":[{"template":""}]}],"members":{"places":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInListModel","line":29,"character":12},"arguments":["placesModel"]}]}],"placesModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":32,"character":12}}]}],"placeOutlet":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"StoreInValueModel","line":36,"character":12},"arguments":["placeOutletModel"]}]}],"placeOutletModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":39,"character":12}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../place-router","name":"PlaceRouter","line":48,"character":36}]}],"getNavigationFace":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@typescript-plus/fast-memoize-decorator/dist/src","name":"Memoize","line":73,"character":3}}]}],"isActive":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}}}}]
|
|
@@ -9,7 +9,7 @@ export class ListPlaceNavComponent extends AbstractPlaceNavigationComponent {
|
|
|
9
9
|
ListPlaceNavComponent.decorators = [
|
|
10
10
|
{ type: Component, args: [{
|
|
11
11
|
selector: 'aup-list-place-nav',
|
|
12
|
-
template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let
|
|
12
|
+
template: "<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNavigationFace(placeDefinition).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(placeDefinition)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n",
|
|
13
13
|
styles: [":host{display:flex;flex-direction:column;--selected-border-color:#838383;--selected-color:inherit;--selected-background:#f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]
|
|
14
14
|
},] }
|
|
15
15
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-place-nav.component.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/place/components/list-place-nav/list-place-nav.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAO1F,MAAM,OAAO,qBAAsB,SAAQ,gCAAgC;IAEzE,YAAY,MAAmB;QAC7B,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;;;YATF,SAAS,SAAC;gBACT,QAAQ,EAAE,oBAAoB;gBAC9B,
|
|
1
|
+
{"version":3,"file":"list-place-nav.component.js","sourceRoot":"","sources":["../../../../../../../../libs/angular-ui-powerups/src/lib/place/components/list-place-nav/list-place-nav.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAO1F,MAAM,OAAO,qBAAsB,SAAQ,gCAAgC;IAEzE,YAAY,MAAmB;QAC7B,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;;;YATF,SAAS,SAAC;gBACT,QAAQ,EAAE,oBAAoB;gBAC9B,8ZAA8C;;aAE/C;;;YAPQ,WAAW","sourcesContent":["import { Component } from '@angular/core';\nimport { PlaceRouter } from '../../place-router';\nimport { AbstractPlaceNavigationComponent } from '../abstract-place-navigation.component';\n\n@Component({\n selector: 'aup-list-place-nav',\n templateUrl: './list-place-nav.component.html',\n styleUrls: ['./list-place-nav.component.scss']\n})\nexport class ListPlaceNavComponent extends AbstractPlaceNavigationComponent {\n\n constructor(router: PlaceRouter) {\n super(router);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"ListPlaceNavComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../abstract-place-navigation.component","name":"AbstractPlaceNavigationComponent","line":9,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"aup-list-place-nav","template":"<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"ListPlaceNavComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../abstract-place-navigation.component","name":"AbstractPlaceNavigationComponent","line":9,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"aup-list-place-nav","template":"<mat-nav-list fxFlex>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNavigationFace(placeDefinition).tooltip()\">\n <aup-command-face [faces]=\"[getNavigationFace(placeDefinition)]\"></aup-command-face>\n </a>\n</mat-nav-list>\n","styles":[":host{display:flex;flex-direction:column;--selected-border-color:#838383;--selected-color:inherit;--selected-background:#f1f1f1}mat-nav-list{padding-top:0}a{border-right:2px solid transparent}a.active{border-right:2px solid var(--selected-border-color);background:var(--selected-background);color:var(--selected-color)}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../../place-router","name":"PlaceRouter","line":11,"character":22}]}]}}}}]
|
package/esm2015/lib/place/components/side-place-navigation/side-place-navigation.component.js
CHANGED
|
@@ -61,7 +61,7 @@ export class SidePlaceNavigationComponent extends AbstractPlaceNavigationCompone
|
|
|
61
61
|
SidePlaceNavigationComponent.decorators = [
|
|
62
62
|
{ type: Component, args: [{
|
|
63
63
|
selector: 'aup-side-place-navigation',
|
|
64
|
-
template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let
|
|
64
|
+
template: "<mat-nav-list>\n <a mat-list-item (click)=\"toggleMenu()\" class=\"home\">\n <aup-icon class=\"collapsed-only\" icon=\"mat:menu\"></aup-icon>\n <aup-icon class=\"expanded-only\" icon=\"mat:arrow_back\"></aup-icon>\n <span class=\"expanded-only\">Menu</span>\n </a>\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNavigationFace(placeDefinition).tooltip()\">\n <aup-icon *ngIf=\"getNavigationFace(placeDefinition).icon()\" [icon]=\"getNavigationFace(placeDefinition).icon()\"></aup-icon>\n <span class=\"expanded-only\">{{getNavigationFace(placeDefinition).text()}}</span>\n </a>\n <span [style.flex]=\"1\"></span>\n <ng-container *ngIf=\"navEndTemplate\" [ngTemplateOutlet]=\"navEndTemplate\"></ng-container>\n</mat-nav-list>\n",
|
|
65
65
|
styles: [":host{display:flex;flex-direction:column;--resolved-nav-item-width:var(--nav-width,56px);--resolved-nav-item-height:var(--nav-item-height,var(--resolved-nav-item-width));--resolved-expanded-width:var(--nav-expanded-width,235px);--resolved-color:var(--nav-color,hsla(0,0%,100%,0.9));--resolved-background-color:var(--nav-background-color,#555);width:var(--resolved-nav-item-width);transition:width 125ms linear;background-color:var(--resolved-background-color);color:var(--resolved-color)}:host.expanded{width:var(--resolved-expanded-width);max-width:var(--resolved-expanded-width)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item aup-icon:not(.collapsed-only){margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--resolved-nav-item-width);height:var(--resolved-nav-item-height);color:inherit}.mat-list-item.active{background-color:#444}.mat-list-item.home{text-align:left}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}"]
|
|
66
66
|
},] }
|
|
67
67
|
];
|