@ng-doc/builder 15.0.0-beta.28 → 15.0.0-beta.30
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/engine/.cache/apps/ng-doc/src/app/docs/content/guidelines/demo/demos/button-demo/button-demo.component.js +0 -1
- package/engine/.cache/apps/ng-doc/src/app/docs/content/guidelines/demo/demos/button-inline-demo/button-inline-demo.component.js +0 -1
- package/engine/.cache/libs/app/classes/search-engine/search-engine.js +0 -1
- package/engine/.cache/libs/app/components/api-list/api-list.component.js +0 -9
- package/engine/.cache/libs/app/components/code/code.component.js +3 -8
- package/engine/.cache/libs/app/components/demo/demo.component.js +2 -5
- package/engine/.cache/libs/app/components/demo-displayer/demo-displayer.component.js +6 -8
- package/engine/.cache/libs/app/components/kind-icon/kind-icon.component.js +4 -2
- package/engine/.cache/libs/app/components/link/link.component.js +3 -1
- package/engine/.cache/libs/app/components/navbar/navbar.component.js +5 -9
- package/engine/.cache/libs/app/components/page/page.component.js +0 -1
- package/engine/.cache/libs/app/components/page-map/page-map-element/page-map-element.component.js +3 -4
- package/engine/.cache/libs/app/components/page-map/page-map.component.js +3 -9
- package/engine/.cache/libs/app/components/playground/playground.component.js +2 -7
- package/engine/.cache/libs/app/components/playground-demo/playground-demo.component.js +5 -14
- package/engine/.cache/libs/app/components/playground-properties/playground-properties.component.js +5 -6
- package/engine/.cache/libs/app/components/playground-property/playground-property.component.js +1 -7
- package/engine/.cache/libs/app/components/root/root.component.js +0 -7
- package/engine/.cache/libs/app/components/search/search.component.js +4 -6
- package/engine/.cache/libs/app/components/search-result/search-result.component.js +4 -2
- package/engine/.cache/libs/app/components/sidebar/sidebar-category/sidebar-category.component.js +4 -7
- package/engine/.cache/libs/app/components/sidebar/sidebar-item/sidebar-item.component.js +0 -1
- package/engine/.cache/libs/app/components/sidebar/sidebar.component.js +0 -1
- package/engine/.cache/libs/app/components/theme-toggle/theme-toggle.component.js +1 -2
- package/engine/.cache/libs/app/directives/code-highlighter/code-highlighter.directive.js +4 -5
- package/engine/.cache/libs/app/directives/route-active/route-active.directive.js +8 -12
- package/engine/.cache/libs/app/pipes/sanitize-html/sanitize-html.pipe.js +0 -1
- package/engine/.cache/libs/app/processors/blockquote-processor/blockquote-processor.directive.js +0 -2
- package/engine/.cache/libs/app/processors/code-processor/code-processor.directive.js +0 -2
- package/engine/.cache/libs/app/processors/demo-processor/demo-processor.directive.js +0 -2
- package/engine/.cache/libs/app/processors/html-processor/html-processor.directive.js +0 -4
- package/engine/.cache/libs/app/processors/icon-processor/icon-processor.directive.js +0 -2
- package/engine/.cache/libs/app/processors/playground-processor/playground-processor.directive.js +0 -2
- package/engine/.cache/libs/app/processors/tooltip-processor/tooltip-processor.directive.js +0 -2
- package/engine/.cache/libs/app/processors/tooltip-processor/tooltip-wrapper.component.js +0 -1
- package/engine/.cache/libs/app/services/sidebar/sidebar.service.js +2 -5
- package/engine/.cache/libs/app/services/theme/theme.service.js +1 -5
- package/engine/.cache/libs/app/type-controls/boolean-control/boolean-control.component.js +2 -2
- package/engine/.cache/libs/app/type-controls/number-control/number-control.component.js +0 -1
- package/engine/.cache/libs/app/type-controls/string-control/string-control.component.js +0 -1
- package/engine/.cache/libs/app/type-controls/type-alias-control/type-alias-control.component.js +0 -2
- package/engine/.cache/libs/builder/classes/observable-set.js +4 -2
- package/engine/.cache/libs/builder/engine/actions.js +0 -1
- package/engine/.cache/libs/builder/engine/builder.js +2 -5
- package/engine/.cache/libs/builder/engine/entities/abstractions/entity.js +23 -25
- package/engine/.cache/libs/builder/engine/entities/abstractions/file.entity.js +0 -4
- package/engine/.cache/libs/builder/engine/entities/abstractions/navigation.entity.js +7 -4
- package/engine/.cache/libs/builder/engine/entities/abstractions/route.entity.js +8 -5
- package/engine/.cache/libs/builder/engine/entities/abstractions/source-file.entity.js +4 -7
- package/engine/.cache/libs/builder/engine/entities/api-page.entity.js +7 -13
- package/engine/.cache/libs/builder/engine/entities/api-scope.entity.js +6 -11
- package/engine/.cache/libs/builder/engine/entities/api.entity.js +6 -4
- package/engine/.cache/libs/builder/engine/entities/category.entity.js +5 -3
- package/engine/.cache/libs/builder/engine/entities/dependencies.entity.js +4 -1
- package/engine/.cache/libs/builder/engine/entities/page.entity.js +6 -4
- package/engine/.cache/libs/builder/engine/entities/playground.entity.js +5 -2
- package/engine/.cache/libs/builder/engine/entities/skeleton.entity.js +8 -5
- package/engine/.cache/libs/builder/engine/entity-store.js +4 -1
- package/engine/.cache/libs/builder/engine/renderer.js +0 -5
- package/engine/.cache/libs/builder/engine/template-filters.js +18 -1
- package/engine/.cache/libs/builder/engine/watcher.js +4 -5
- package/engine/.cache/libs/builder/helpers/format-code.js +3 -6
- package/engine/.cache/libs/builder/helpers/presentation.js +90 -4
- package/engine/.cache/libs/builder/helpers/typescript/accessor/accessor.js +2 -0
- package/engine/.cache/libs/builder/helpers/typescript/accessor/get-accessor-chain.js +49 -0
- package/engine/.cache/libs/builder/helpers/typescript/accessor/get-class-accessors.js +30 -0
- package/engine/.cache/libs/builder/helpers/typescript/accessor/get-interface-accessors.js +35 -0
- package/engine/.cache/libs/builder/helpers/typescript/accessor/group-accessors.js +22 -0
- package/engine/.cache/libs/builder/helpers/typescript/accessor/index.js +8 -0
- package/engine/.cache/libs/builder/helpers/typescript/class/find-base-class.js +21 -0
- package/engine/.cache/libs/builder/helpers/typescript/class/find-class.js +21 -0
- package/engine/.cache/libs/builder/helpers/typescript/class/for-all-classes.js +15 -0
- package/engine/.cache/libs/builder/helpers/typescript/class/index.js +6 -0
- package/engine/.cache/libs/builder/helpers/typescript/first-node-with-comment.js +13 -0
- package/engine/.cache/libs/builder/helpers/typescript/index.js +8 -0
- package/engine/.cache/libs/builder/helpers/typescript/interface/find-interface.js +29 -0
- package/engine/.cache/libs/builder/helpers/typescript/interface/for-all-interfaces.js +20 -0
- package/engine/.cache/libs/builder/helpers/typescript/interface/get-interface-member.js +17 -0
- package/engine/.cache/libs/builder/helpers/typescript/interface/index.js +5 -0
- package/engine/.cache/libs/builder/helpers/typescript/member/find-member.js +26 -0
- package/engine/.cache/libs/builder/helpers/typescript/member/get-implemented-member.js +46 -0
- package/engine/.cache/libs/builder/helpers/typescript/member/get-overridden-member.js +29 -0
- package/engine/.cache/libs/builder/helpers/typescript/member/index.js +7 -0
- package/engine/.cache/libs/builder/helpers/typescript/member/member-type.js +2 -0
- package/engine/.cache/libs/builder/helpers/typescript/method/get-class-methods.js +22 -0
- package/engine/.cache/libs/builder/helpers/typescript/method/get-interface-methods.js +22 -0
- package/engine/.cache/libs/builder/helpers/typescript/method/get-method-chain.js +33 -0
- package/engine/.cache/libs/builder/helpers/typescript/method/index.js +6 -0
- package/engine/.cache/libs/builder/helpers/typescript/node/index.js +4 -0
- package/engine/.cache/libs/builder/helpers/typescript/node/sort-by-nodes-name.js +11 -0
- package/engine/.cache/libs/builder/helpers/typescript/property/get-class-properties.js +22 -0
- package/engine/.cache/libs/builder/helpers/typescript/property/get-interface-properties.js +22 -0
- package/engine/.cache/libs/builder/helpers/typescript/property/get-property-chain.js +34 -0
- package/engine/.cache/libs/builder/helpers/typescript/property/index.js +6 -0
- package/engine/.cache/libs/ui-kit/cdk/combobox-host/combobox-host.component.js +3 -8
- package/engine/.cache/libs/ui-kit/classes/base-input/base-input.js +0 -3
- package/engine/.cache/libs/ui-kit/classes/overlay-ref/overlay-ref.js +2 -8
- package/engine/.cache/libs/ui-kit/components/blockquote/blockquote.component.js +3 -1
- package/engine/.cache/libs/ui-kit/components/button/button.component.js +4 -2
- package/engine/.cache/libs/ui-kit/components/button-icon/button-icon.component.js +5 -3
- package/engine/.cache/libs/ui-kit/components/checkbox/checkbox.component.js +1 -3
- package/engine/.cache/libs/ui-kit/components/clear-control/clear-control.component.js +0 -3
- package/engine/.cache/libs/ui-kit/components/combobox/combobox.component.js +6 -7
- package/engine/.cache/libs/ui-kit/components/dot/dot.component.js +0 -2
- package/engine/.cache/libs/ui-kit/components/dropdown/dropdown.component.js +26 -32
- package/engine/.cache/libs/ui-kit/components/expander/expander.component.js +8 -7
- package/engine/.cache/libs/ui-kit/components/floated-content/floated-content.component.js +2 -6
- package/engine/.cache/libs/ui-kit/components/focus-control/focus-control.component.js +1 -2
- package/engine/.cache/libs/ui-kit/components/icon/icon.component.js +5 -8
- package/engine/.cache/libs/ui-kit/components/input-wrapper/input-wrapper.component.js +5 -11
- package/engine/.cache/libs/ui-kit/components/label/label.component.js +5 -3
- package/engine/.cache/libs/ui-kit/components/list/list.component.js +2 -6
- package/engine/.cache/libs/ui-kit/components/option/option.component.js +1 -5
- package/engine/.cache/libs/ui-kit/components/overlay-container/overlay-container.component.js +4 -14
- package/engine/.cache/libs/ui-kit/components/overlay-pointer/overlay-pointer.component.js +5 -3
- package/engine/.cache/libs/ui-kit/components/selection/selection-host.directive.js +4 -3
- package/engine/.cache/libs/ui-kit/components/selection/selection-origin.directive.js +1 -3
- package/engine/.cache/libs/ui-kit/components/selection/selection.component.js +1 -3
- package/engine/.cache/libs/ui-kit/components/tab-group/tab/tab.component.js +6 -4
- package/engine/.cache/libs/ui-kit/components/tab-group/tab-group.component.js +2 -5
- package/engine/.cache/libs/ui-kit/components/tag/tag.component.js +4 -2
- package/engine/.cache/libs/ui-kit/components/text/text.component.js +7 -10
- package/engine/.cache/libs/ui-kit/components/toggle/toggle.component.js +2 -8
- package/engine/.cache/libs/ui-kit/directives/autofocus/autofocus.directive.js +0 -1
- package/engine/.cache/libs/ui-kit/directives/checked-change/checked-change.directive.js +5 -7
- package/engine/.cache/libs/ui-kit/directives/data/data.directive.js +0 -2
- package/engine/.cache/libs/ui-kit/directives/dropdown-handler/dropdown-handler.directive.js +0 -1
- package/engine/.cache/libs/ui-kit/directives/dropdown-origin/dropdown-origin.directive.js +0 -1
- package/engine/.cache/libs/ui-kit/directives/event-switcher/event-switcher.directive.js +2 -4
- package/engine/.cache/libs/ui-kit/directives/focus-catcher/focus-catcher.directive.js +3 -6
- package/engine/.cache/libs/ui-kit/directives/focusable/focusable.directive.js +3 -1
- package/engine/.cache/libs/ui-kit/directives/input-number/input-number.directive.js +0 -3
- package/engine/.cache/libs/ui-kit/directives/input-string/input-string.directive.js +0 -3
- package/engine/.cache/libs/ui-kit/directives/let/let-context.js +0 -1
- package/engine/.cache/libs/ui-kit/directives/let/let.directive.js +0 -3
- package/engine/.cache/libs/ui-kit/directives/media-query/media-query.directive.js +3 -7
- package/engine/.cache/libs/ui-kit/directives/rotator/rotator.directive.js +6 -8
- package/engine/.cache/libs/ui-kit/directives/tooltip/tooltip.directive.js +21 -29
- package/engine/.cache/libs/ui-kit/interceptors/cache.interceptor.js +4 -2
- package/engine/.cache/libs/ui-kit/observables/zone.js +0 -1
- package/engine/.cache/libs/ui-kit/services/notify/notify.service.js +1 -3
- package/engine/.cache/libs/ui-kit/services/overlay/overlay.service.js +0 -4
- package/engine/.cache/libs/ui-kit/services/overlay-strategy/overlay-strategy.js +2 -4
- package/engine/.cache/libs/ui-kit/types/content.js +0 -2
- package/engine/entities/api-page.entity.d.ts +1 -1
- package/engine/template-filters.d.ts +1 -1
- package/engine/template-filters.js +18 -1
- package/engine/template-filters.js.map +1 -1
- package/helpers/format-code.js +3 -6
- package/helpers/format-code.js.map +1 -1
- package/helpers/presentation.d.ts +16 -1
- package/helpers/presentation.js +91 -4
- package/helpers/presentation.js.map +1 -1
- package/helpers/typescript/accessor/accessor.d.ts +5 -0
- package/helpers/typescript/accessor/accessor.js +3 -0
- package/helpers/typescript/accessor/accessor.js.map +1 -0
- package/helpers/typescript/accessor/get-accessor-chain.d.ts +7 -0
- package/helpers/typescript/accessor/get-accessor-chain.js +50 -0
- package/helpers/typescript/accessor/get-accessor-chain.js.map +1 -0
- package/helpers/typescript/accessor/get-class-accessors.d.ts +6 -0
- package/helpers/typescript/accessor/get-class-accessors.js +31 -0
- package/helpers/typescript/accessor/get-class-accessors.js.map +1 -0
- package/helpers/typescript/accessor/get-interface-accessors.d.ts +6 -0
- package/helpers/typescript/accessor/get-interface-accessors.js +36 -0
- package/helpers/typescript/accessor/get-interface-accessors.js.map +1 -0
- package/helpers/typescript/accessor/group-accessors.d.ts +7 -0
- package/helpers/typescript/accessor/group-accessors.js +23 -0
- package/helpers/typescript/accessor/group-accessors.js.map +1 -0
- package/helpers/typescript/accessor/index.d.ts +5 -0
- package/helpers/typescript/accessor/index.js +9 -0
- package/helpers/typescript/accessor/index.js.map +1 -0
- package/helpers/typescript/class/find-base-class.d.ts +7 -0
- package/helpers/typescript/class/find-base-class.js +22 -0
- package/helpers/typescript/class/find-base-class.js.map +1 -0
- package/helpers/typescript/class/find-class.d.ts +7 -0
- package/helpers/typescript/class/find-class.js +22 -0
- package/helpers/typescript/class/find-class.js.map +1 -0
- package/helpers/typescript/class/for-all-classes.d.ts +7 -0
- package/helpers/typescript/class/for-all-classes.js +16 -0
- package/helpers/typescript/class/for-all-classes.js.map +1 -0
- package/helpers/typescript/class/index.d.ts +3 -0
- package/helpers/typescript/class/index.js +7 -0
- package/helpers/typescript/class/index.js.map +1 -0
- package/helpers/typescript/first-node-with-comment.d.ts +8 -0
- package/helpers/typescript/first-node-with-comment.js +15 -0
- package/helpers/typescript/first-node-with-comment.js.map +1 -0
- package/helpers/typescript/index.d.ts +8 -0
- package/helpers/typescript/index.js +8 -0
- package/helpers/typescript/index.js.map +1 -1
- package/helpers/typescript/interface/find-interface.d.ts +7 -0
- package/helpers/typescript/interface/find-interface.js +30 -0
- package/helpers/typescript/interface/find-interface.js.map +1 -0
- package/helpers/typescript/interface/for-all-interfaces.d.ts +7 -0
- package/helpers/typescript/interface/for-all-interfaces.js +21 -0
- package/helpers/typescript/interface/for-all-interfaces.js.map +1 -0
- package/helpers/typescript/interface/get-interface-member.d.ts +8 -0
- package/helpers/typescript/interface/get-interface-member.js +18 -0
- package/helpers/typescript/interface/get-interface-member.js.map +1 -0
- package/helpers/typescript/interface/index.d.ts +2 -0
- package/helpers/typescript/interface/index.js +6 -0
- package/helpers/typescript/interface/index.js.map +1 -0
- package/helpers/typescript/member/find-member.d.ts +4 -0
- package/helpers/typescript/member/find-member.js +28 -0
- package/helpers/typescript/member/find-member.js.map +1 -0
- package/helpers/typescript/member/get-implemented-member.d.ts +7 -0
- package/helpers/typescript/member/get-implemented-member.js +47 -0
- package/helpers/typescript/member/get-implemented-member.js.map +1 -0
- package/helpers/typescript/member/get-overridden-member.d.ts +7 -0
- package/helpers/typescript/member/get-overridden-member.js +30 -0
- package/helpers/typescript/member/get-overridden-member.js.map +1 -0
- package/helpers/typescript/member/index.d.ts +4 -0
- package/helpers/typescript/member/index.js +8 -0
- package/helpers/typescript/member/index.js.map +1 -0
- package/helpers/typescript/member/member-type.d.ts +4 -0
- package/helpers/typescript/member/member-type.js +3 -0
- package/helpers/typescript/member/member-type.js.map +1 -0
- package/helpers/typescript/method/get-class-methods.d.ts +6 -0
- package/helpers/typescript/method/get-class-methods.js +23 -0
- package/helpers/typescript/method/get-class-methods.js.map +1 -0
- package/helpers/typescript/method/get-interface-methods.d.ts +6 -0
- package/helpers/typescript/method/get-interface-methods.js +23 -0
- package/helpers/typescript/method/get-interface-methods.js.map +1 -0
- package/helpers/typescript/method/get-method-chain.d.ts +6 -0
- package/helpers/typescript/method/get-method-chain.js +34 -0
- package/helpers/typescript/method/get-method-chain.js.map +1 -0
- package/helpers/typescript/method/index.d.ts +3 -0
- package/helpers/typescript/method/index.js +7 -0
- package/helpers/typescript/method/index.js.map +1 -0
- package/helpers/typescript/node/index.d.ts +1 -0
- package/helpers/typescript/node/index.js +5 -0
- package/helpers/typescript/node/index.js.map +1 -0
- package/helpers/typescript/node/sort-by-nodes-name.d.ts +6 -0
- package/helpers/typescript/node/sort-by-nodes-name.js +12 -0
- package/helpers/typescript/node/sort-by-nodes-name.js.map +1 -0
- package/helpers/typescript/property/get-class-properties.d.ts +6 -0
- package/helpers/typescript/property/get-class-properties.js +23 -0
- package/helpers/typescript/property/get-class-properties.js.map +1 -0
- package/helpers/typescript/property/get-interface-properties.d.ts +6 -0
- package/helpers/typescript/property/get-interface-properties.js +23 -0
- package/helpers/typescript/property/get-interface-properties.js.map +1 -0
- package/helpers/typescript/property/get-property-chain.d.ts +6 -0
- package/helpers/typescript/property/get-property-chain.js +35 -0
- package/helpers/typescript/property/get-property-chain.js.map +1 -0
- package/helpers/typescript/property/index.d.ts +3 -0
- package/helpers/typescript/property/index.js +7 -0
- package/helpers/typescript/property/index.js.map +1 -0
- package/package.json +2 -2
- package/templates/api/class.html.nunj +39 -8
- package/templates/api/function.html.nunj +1 -1
- package/templates/api/interface.html.nunj +13 -4
- package/templates/helpers/accessor.html.nunj +68 -0
- package/templates/helpers/accessors.html.nunj +7 -0
- package/templates/helpers/constructor.html.nunj +34 -0
- package/templates/helpers/declaration-modifiers.html.nunj +4 -8
- package/templates/helpers/method.html.nunj +19 -4
- package/templates/helpers/methods.html.nunj +2 -2
- package/templates/helpers/parameters.html.nunj +2 -1
- package/templates/helpers/properties.html.nunj +17 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getInterfaceMethods = void 0;
|
|
4
|
+
const core_1 = require("@ng-doc/core");
|
|
5
|
+
const interface_1 = require("../interface");
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param int
|
|
9
|
+
*/
|
|
10
|
+
function getInterfaceMethods(int) {
|
|
11
|
+
const methods = new Map();
|
|
12
|
+
(0, interface_1.forAllInterfaces)(int, (i) => {
|
|
13
|
+
i.getMethods().forEach((method) => {
|
|
14
|
+
const name = method.getName();
|
|
15
|
+
if (!methods.get(name)) {
|
|
16
|
+
methods.set(name, method);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
return (0, core_1.asArray)(methods.values());
|
|
21
|
+
}
|
|
22
|
+
exports.getInterfaceMethods = getInterfaceMethods;
|
|
23
|
+
//# sourceMappingURL=get-interface-methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-interface-methods.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/method/get-interface-methods.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAGrC,4CAA8C;AAE9C;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,GAAyB;IAC5D,MAAM,OAAO,GAAiC,IAAI,GAAG,EAA2B,CAAC;IAEjF,IAAA,4BAAgB,EAAC,GAAG,EAAE,CAAC,CAAuB,EAAE,EAAE;QACjD,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC,MAAuB,EAAE,EAAE;YAClD,MAAM,IAAI,GAAW,MAAM,CAAC,OAAO,EAAE,CAAC;YAEtC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBACvB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;aAC1B;QACF,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,IAAA,cAAO,EAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAClC,CAAC;AAdD,kDAcC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMethodChain = void 0;
|
|
4
|
+
const ts_morph_1 = require("ts-morph");
|
|
5
|
+
const class_1 = require("../class");
|
|
6
|
+
const for_all_interfaces_1 = require("../interface/for-all-interfaces");
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param method
|
|
10
|
+
*/
|
|
11
|
+
function getMethodChain(method) {
|
|
12
|
+
const parent = method.getParent();
|
|
13
|
+
const methods = [];
|
|
14
|
+
if (ts_morph_1.Node.isClassDeclaration(parent)) {
|
|
15
|
+
(0, class_1.forAllClasses)(parent, (cls) => {
|
|
16
|
+
const mtd = cls.getMethod(method.getName());
|
|
17
|
+
if (mtd) {
|
|
18
|
+
methods.push(mtd);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
// TODO: Add interfaces
|
|
22
|
+
}
|
|
23
|
+
if (ts_morph_1.Node.isInterfaceDeclaration(parent)) {
|
|
24
|
+
(0, for_all_interfaces_1.forAllInterfaces)(parent, (int) => {
|
|
25
|
+
const mtd = int.getMethod(method.getName());
|
|
26
|
+
if (mtd) {
|
|
27
|
+
methods.push(mtd);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return methods;
|
|
32
|
+
}
|
|
33
|
+
exports.getMethodChain = getMethodChain;
|
|
34
|
+
//# sourceMappingURL=get-method-chain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-method-chain.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/method/get-method-chain.ts"],"names":[],"mappings":";;;AAAA,uCAA0G;AAE1G,oCAAsD;AACtD,wEAAiE;AAEjE;;;GAGG;AACH,SAAgB,cAAc,CAAC,MAAyB;IACvD,MAAM,MAAM,GAAqB,MAAM,CAAC,SAAS,EAAE,CAAC;IACpD,MAAM,OAAO,GAA+C,EAAE,CAAC;IAE/D,IAAI,eAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE;QACpC,IAAA,qBAAa,EAAC,MAAM,EAAE,CAAC,GAAqB,EAAE,EAAE;YAC/C,MAAM,GAAG,GAAkC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;YAE3E,IAAI,GAAG,EAAE;gBACR,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aAClB;QACF,CAAC,CAAC,CAAC;QAEH,uBAAuB;KACvB;IAED,IAAI,eAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE;QACxC,IAAA,qCAAgB,EAAC,MAAM,EAAE,CAAC,GAAyB,EAAE,EAAE;YACtD,MAAM,GAAG,GAAgC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;YAEzE,IAAI,GAAG,EAAE;gBACR,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aAClB;QACF,CAAC,CAAC,CAAC;KACH;IAED,OAAO,OAAO,CAAC;AAChB,CAAC;AA3BD,wCA2BC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./get-class-methods"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./get-interface-methods"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./get-method-chain"), exports);
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/method/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,kEAAwC;AACxC,6DAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sort-by-nodes-name';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/node/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sortByNodesName = void 0;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param nodes
|
|
7
|
+
*/
|
|
8
|
+
function sortByNodesName(nodes) {
|
|
9
|
+
return nodes.sort((a, b) => { var _a, _b; return ((_a = a.getName()) !== null && _a !== void 0 ? _a : '').localeCompare((_b = b.getName()) !== null && _b !== void 0 ? _b : ''); });
|
|
10
|
+
}
|
|
11
|
+
exports.sortByNodesName = sortByNodesName;
|
|
12
|
+
//# sourceMappingURL=sort-by-nodes-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-by-nodes-name.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/node/sort-by-nodes-name.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,SAAgB,eAAe,CAAiC,KAAU;IACzE,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAI,EAAE,CAAI,EAAE,EAAE,eAAC,OAAA,CAAC,MAAA,CAAC,CAAC,OAAO,EAAE,mCAAI,EAAE,CAAC,CAAC,aAAa,CAAC,MAAA,CAAC,CAAC,OAAO,EAAE,mCAAI,EAAE,CAAC,CAAA,EAAA,CAAC,CAAC;AACzF,CAAC;AAFD,0CAEC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getClassProperties = void 0;
|
|
4
|
+
const core_1 = require("@ng-doc/core");
|
|
5
|
+
const class_1 = require("../class");
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param cls
|
|
9
|
+
*/
|
|
10
|
+
function getClassProperties(cls) {
|
|
11
|
+
const properties = new Map();
|
|
12
|
+
(0, class_1.forAllClasses)(cls, (baseClass) => {
|
|
13
|
+
baseClass.getProperties().forEach((property) => {
|
|
14
|
+
const name = property.getName();
|
|
15
|
+
if (!properties.get(name) && (!property.isAbstract() || (property.isAbstract() && cls === baseClass))) {
|
|
16
|
+
properties.set(name, property);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
return (0, core_1.asArray)(properties.values());
|
|
21
|
+
}
|
|
22
|
+
exports.getClassProperties = getClassProperties;
|
|
23
|
+
//# sourceMappingURL=get-class-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-class-properties.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/get-class-properties.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAGrC,oCAAuC;AAEvC;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,GAAqB;IACvD,MAAM,UAAU,GAAqC,IAAI,GAAG,EAA+B,CAAC;IAE5F,IAAA,qBAAa,EAAC,GAAG,EAAE,CAAC,SAA2B,EAAE,EAAE;QAClD,SAAS,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,CAAC,QAA6B,EAAE,EAAE;YACnE,MAAM,IAAI,GAAW,QAAQ,CAAC,OAAO,EAAE,CAAC;YAExC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,GAAG,KAAK,SAAS,CAAC,CAAC,EAAE;gBACtG,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;aAC/B;QACF,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,IAAA,cAAO,EAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;AACrC,CAAC;AAdD,gDAcC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getInterfaceProperties = void 0;
|
|
4
|
+
const core_1 = require("@ng-doc/core");
|
|
5
|
+
const interface_1 = require("../interface");
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param int
|
|
9
|
+
*/
|
|
10
|
+
function getInterfaceProperties(int) {
|
|
11
|
+
const properties = new Map();
|
|
12
|
+
(0, interface_1.forAllInterfaces)(int, (i) => {
|
|
13
|
+
i.getProperties().forEach((property) => {
|
|
14
|
+
const name = property.getName();
|
|
15
|
+
if (!properties.get(name)) {
|
|
16
|
+
properties.set(name, property);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
return (0, core_1.asArray)(properties.values());
|
|
21
|
+
}
|
|
22
|
+
exports.getInterfaceProperties = getInterfaceProperties;
|
|
23
|
+
//# sourceMappingURL=get-interface-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-interface-properties.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/get-interface-properties.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAGrC,4CAA8C;AAE9C;;;GAGG;AACH,SAAgB,sBAAsB,CAAC,GAAyB;IAC/D,MAAM,UAAU,GAAmC,IAAI,GAAG,EAA6B,CAAC;IAExF,IAAA,4BAAgB,EAAC,GAAG,EAAE,CAAC,CAAuB,EAAE,EAAE;QACjD,CAAC,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,CAAC,QAA2B,EAAE,EAAE;YACzD,MAAM,IAAI,GAAW,QAAQ,CAAC,OAAO,EAAE,CAAC;YAExC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBAC1B,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;aAC/B;QACF,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,IAAA,cAAO,EAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;AACrC,CAAC;AAdD,wDAcC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPropertyChain = void 0;
|
|
4
|
+
const ts_morph_1 = require("ts-morph");
|
|
5
|
+
const class_1 = require("../class");
|
|
6
|
+
const interface_1 = require("../interface");
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param property
|
|
10
|
+
*/
|
|
11
|
+
function getPropertyChain(property) {
|
|
12
|
+
const parent = property.getParent();
|
|
13
|
+
const name = property.getName();
|
|
14
|
+
const properties = [];
|
|
15
|
+
if (ts_morph_1.Node.isClassDeclaration(parent)) {
|
|
16
|
+
(0, class_1.forAllClasses)(parent, (cls) => {
|
|
17
|
+
const prop = cls.getProperty(name);
|
|
18
|
+
if (prop) {
|
|
19
|
+
properties.push(prop);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
// TODO: Add interfaces
|
|
23
|
+
}
|
|
24
|
+
if (ts_morph_1.Node.isInterfaceDeclaration(parent)) {
|
|
25
|
+
(0, interface_1.forAllInterfaces)(parent, (int) => {
|
|
26
|
+
const prop = int.getProperty(name);
|
|
27
|
+
if (prop) {
|
|
28
|
+
properties.push(prop);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return properties;
|
|
33
|
+
}
|
|
34
|
+
exports.getPropertyChain = getPropertyChain;
|
|
35
|
+
//# sourceMappingURL=get-property-chain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-property-chain.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/get-property-chain.ts"],"names":[],"mappings":";;;AAAA,uCAA8G;AAE9G,oCAAuC;AACvC,4CAA8C;AAE9C;;;GAGG;AACH,SAAgB,gBAAgB,CAC/B,QAAiD;IAEjD,MAAM,MAAM,GAAqB,QAAQ,CAAC,SAAS,EAAE,CAAC;IACtD,MAAM,IAAI,GAAW,QAAQ,CAAC,OAAO,EAAE,CAAC;IACxC,MAAM,UAAU,GAAmD,EAAE,CAAC;IAEtE,IAAI,eAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE;QACpC,IAAA,qBAAa,EAAC,MAAM,EAAE,CAAC,GAAqB,EAAE,EAAE;YAC/C,MAAM,IAAI,GAAoC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAEpE,IAAI,IAAI,EAAE;gBACT,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACtB;QACF,CAAC,CAAC,CAAC;QAEH,uBAAuB;KACvB;IAED,IAAI,eAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE;QACxC,IAAA,4BAAgB,EAAC,MAAM,EAAE,CAAC,GAAyB,EAAE,EAAE;YACtD,MAAM,IAAI,GAAkC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAElE,IAAI,IAAI,EAAE;gBACT,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACtB;QACF,CAAC,CAAC,CAAC;KACH;IAED,OAAO,UAAU,CAAC;AACnB,CAAC;AA9BD,4CA8BC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./get-class-properties"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./get-interface-properties"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./get-property-chain"), exports);
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,qEAA2C;AAC3C,+DAAqC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-doc/builder",
|
|
3
|
-
"version": "15.0.0-beta.
|
|
3
|
+
"version": "15.0.0-beta.30",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"builders": "./builders.json",
|
|
6
6
|
"schematics": "./schematics/collection.json",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@ng-doc/core": "15.0.0-beta.
|
|
8
|
+
"@ng-doc/core": "15.0.0-beta.30",
|
|
9
9
|
"@angular-devkit/architect": ">=0.1500.0",
|
|
10
10
|
"chokidar": "^3.5.3",
|
|
11
11
|
"minimatch": "^5.1.0",
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{% extends "api/base.html.nunj" %}
|
|
2
2
|
|
|
3
3
|
{% import "helpers/type.html.nunj" as typeMacro %}
|
|
4
|
+
{% import "helpers/constructor.html.nunj" as constructorMacro %}
|
|
4
5
|
{% import "helpers/methods.html.nunj" as methodsMacro %}
|
|
5
6
|
{% import "helpers/properties.html.nunj" as propertiesMacro %}
|
|
7
|
+
{% import "helpers/accessors.html.nunj" as accessorsMacro %}
|
|
6
8
|
{% import "helpers/tag.html.nunj" as tagMacro %}
|
|
7
9
|
{% import "helpers/modifier.html.nunj" as modifierMacro %}
|
|
8
10
|
|
|
@@ -31,36 +33,65 @@
|
|
|
31
33
|
{% endblock %}
|
|
32
34
|
|
|
33
35
|
{% block overview %}
|
|
34
|
-
{%- set
|
|
35
|
-
{%- set
|
|
36
|
-
{%- set
|
|
37
|
-
{%- set
|
|
36
|
+
{%- set constructors = declaration.getConstructors() | filterByScope("public") -%}
|
|
37
|
+
{%- set allProperties = declaration | getClassProperties | filterByScope(["public", "protected"]) | sortByNodesName -%}
|
|
38
|
+
{%- set allMethods = declaration | getClassMethods | filterByScope(["public", "protected"]) | sortByNodesName -%}
|
|
39
|
+
{%- set allAccessors = declaration | getClassAccessors | filterByScope(["public", "protected"]) | sortByNodesName -%}
|
|
40
|
+
|
|
41
|
+
{%- set staticProperties = allProperties | filterByStatic(true) -%}
|
|
42
|
+
{%- set staticAccessors = allAccessors | filterByStatic(true) -%}
|
|
43
|
+
{%- set staticMethods = allMethods | filterByStatic(true) -%}
|
|
44
|
+
{%- set properties = allProperties | filterByStatic(false) -%}
|
|
45
|
+
{%- set accessors = allAccessors | filterByStatic(false) -%}
|
|
46
|
+
{%- set getAccessors = declaration.getGetAccessors() | filterByStatic(false) -%}
|
|
47
|
+
{%- set methods = allMethods | filterByStatic(false) -%}
|
|
48
|
+
|
|
49
|
+
{% if constructors.length -%}
|
|
50
|
+
<section>
|
|
51
|
+
<h2>Constructor</h2>
|
|
52
|
+
{{ constructorMacro.render(constructors[0]) }}
|
|
53
|
+
</section>
|
|
54
|
+
{%- endif %}
|
|
38
55
|
|
|
39
56
|
{% if staticProperties.length -%}
|
|
40
57
|
<section>
|
|
41
58
|
<h2>Static Properties</h2>
|
|
42
|
-
{{ propertiesMacro.render(staticProperties) }}
|
|
59
|
+
{{ propertiesMacro.render(staticProperties, declaration) }}
|
|
43
60
|
</section>
|
|
44
61
|
{%- endif %}
|
|
45
62
|
|
|
46
63
|
{% if properties.length -%}
|
|
47
64
|
<section>
|
|
48
65
|
<h2>Properties</h2>
|
|
49
|
-
{{ propertiesMacro.render(properties) }}
|
|
66
|
+
{{ propertiesMacro.render(properties, declaration) }}
|
|
67
|
+
</section>
|
|
68
|
+
{%- endif %}
|
|
69
|
+
|
|
70
|
+
{% if staticAccessors.length -%}
|
|
71
|
+
<section>
|
|
72
|
+
<h2>Static Accessors</h2>
|
|
73
|
+
{{ accessorsMacro.render(staticAccessors, declaration) }}
|
|
74
|
+
</section>
|
|
75
|
+
{%- endif %}
|
|
76
|
+
|
|
77
|
+
{% if accessors.length -%}
|
|
78
|
+
<section>
|
|
79
|
+
<h2>Accessors</h2>
|
|
80
|
+
{{ accessorsMacro.render(accessors, declaration) }}
|
|
50
81
|
</section>
|
|
51
82
|
{%- endif %}
|
|
52
83
|
|
|
53
84
|
{% if staticMethods.length -%}
|
|
54
85
|
<section>
|
|
55
86
|
<h2>Static Methods</h2>
|
|
56
|
-
{{ methodsMacro.render(staticMethods) }}
|
|
87
|
+
{{ methodsMacro.render(staticMethods, declaration) }}
|
|
57
88
|
</section>
|
|
58
89
|
{%- endif %}
|
|
59
90
|
|
|
60
91
|
{% if methods.length -%}
|
|
61
92
|
<section>
|
|
62
93
|
<h2>Methods</h2>
|
|
63
|
-
{{ methodsMacro.render(methods) }}
|
|
94
|
+
{{ methodsMacro.render(methods, declaration) }}
|
|
64
95
|
</section>
|
|
65
96
|
{%- endif %}
|
|
66
97
|
{% endblock %}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
{% import "helpers/type.html.nunj" as typeMacro %}
|
|
4
4
|
{% import "helpers/methods.html.nunj" as methodsMacro %}
|
|
5
5
|
{% import "helpers/properties.html.nunj" as propertiesMacro %}
|
|
6
|
+
{% import "helpers/accessors.html.nunj" as accessorsMacro %}
|
|
6
7
|
{% import "helpers/tag.html.nunj" as tagMacro %}
|
|
7
8
|
|
|
8
9
|
{% block details %}
|
|
@@ -19,20 +20,28 @@
|
|
|
19
20
|
{% endblock %}
|
|
20
21
|
|
|
21
22
|
{% block overview %}
|
|
22
|
-
{%- set properties = declaration
|
|
23
|
-
{%- set methods = declaration
|
|
23
|
+
{%- set properties = declaration | getInterfaceProperties | sortByNodesName -%}
|
|
24
|
+
{%- set methods = declaration | getInterfaceMethods | sortByNodesName -%}
|
|
25
|
+
{%- set accessors = declaration | getInterfaceAccessors | sortByNodesName -%}
|
|
24
26
|
|
|
25
27
|
{% if properties.length -%}
|
|
26
28
|
<section>
|
|
27
29
|
<h2>Properties</h2>
|
|
28
|
-
{{ propertiesMacro.render(properties) }}
|
|
30
|
+
{{ propertiesMacro.render(properties, declaration) }}
|
|
31
|
+
</section>
|
|
32
|
+
{%- endif %}
|
|
33
|
+
|
|
34
|
+
{% if accessors.length -%}
|
|
35
|
+
<section>
|
|
36
|
+
<h2>Accessors</h2>
|
|
37
|
+
{{ accessorsMacro.render(accessors, declaration) }}
|
|
29
38
|
</section>
|
|
30
39
|
{%- endif %}
|
|
31
40
|
|
|
32
41
|
{% if methods.length -%}
|
|
33
42
|
<section>
|
|
34
43
|
<h2>Methods</h2>
|
|
35
|
-
{{ methodsMacro.render(methods) }}
|
|
44
|
+
{{ methodsMacro.render(methods, declaration) }}
|
|
36
45
|
</section>
|
|
37
46
|
{%- endif %}
|
|
38
47
|
{% endblock %}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{% import "helpers/code.html.nunj" as codeMacro %}
|
|
2
|
+
{% import "helpers/type.html.nunj" as typeMacro %}
|
|
3
|
+
{% import "helpers/declaration-modifiers.html.nunj" as tagsMacro %}
|
|
4
|
+
{% import "helpers/parameters.html.nunj" as parametersMacro %}
|
|
5
|
+
{% import "helpers/decorators.html.nunj" as decoratorsMacro %}
|
|
6
|
+
{% import "helpers/no-content.html.nunj" as noContentMacro %}
|
|
7
|
+
{% import "helpers/modifier.html.nunj" as modifierMacro %}
|
|
8
|
+
|
|
9
|
+
{% macro render(accessor, originalParent) %}
|
|
10
|
+
{% macro renderAccessor(accessor, type, originalParent) %}
|
|
11
|
+
{% set parameters = accessor.getParameters() %}
|
|
12
|
+
{% set accessorChain = accessor | getAccessorChain %}
|
|
13
|
+
{% set inheritedFrom = accessor.getParent() if accessor.getParent() !== originalParent %}
|
|
14
|
+
{% set overriddenMember = accessor | getOverriddenMember %}
|
|
15
|
+
{% set implementedMember = accessor | getImplementedMember %}
|
|
16
|
+
{% set docNode = accessorChain | firstNodeWithComment %}
|
|
17
|
+
|
|
18
|
+
<div class="ng-doc-table-wrapper">
|
|
19
|
+
<table class="ng-doc-accessor-table">
|
|
20
|
+
<thead>
|
|
21
|
+
<tr>
|
|
22
|
+
<th>
|
|
23
|
+
{{ decoratorsMacro.render(accessor.getDecorators()) if accessor.getDecorators }}
|
|
24
|
+
{{ tagsMacro.render(accessor, 'modifier') }}
|
|
25
|
+
<h3>{{ modifierMacro.render(type) }} {{ accessor.getName() }}</h3>
|
|
26
|
+
<div class="ng-doc-node-details">
|
|
27
|
+
{%- if inheritedFrom %}
|
|
28
|
+
inherited from <code>{{ inheritedFrom.getName() }}</code>
|
|
29
|
+
{%- elseif overriddenMember %}
|
|
30
|
+
overrides <code>{{ overriddenMember.getParent().getName() }}</code>
|
|
31
|
+
{%- elseif implementedMember %}
|
|
32
|
+
implements <code>{{ implementedMember.getParent().getName() }}</code>
|
|
33
|
+
{%- endif %}
|
|
34
|
+
</div>
|
|
35
|
+
</th>
|
|
36
|
+
</tr>
|
|
37
|
+
</thead>
|
|
38
|
+
<tbody>
|
|
39
|
+
<tr>
|
|
40
|
+
<td>
|
|
41
|
+
{% set description = docNode | extractDocs %}
|
|
42
|
+
|
|
43
|
+
{{ description if description else noContentMacro.render('No documentation has been provided.') }}
|
|
44
|
+
</td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<td>
|
|
48
|
+
<h5 class="no-anchor">Presentation</h5>
|
|
49
|
+
{{ codeMacro.render(accessor | accessorPresentation, "typescript", false) }}
|
|
50
|
+
</td>
|
|
51
|
+
</tr>
|
|
52
|
+
<tr>
|
|
53
|
+
<td>
|
|
54
|
+
<h5 class="no-anchor">Type</h5>
|
|
55
|
+
<p>
|
|
56
|
+
{{ typeMacro.render(accessor.getType()) }}
|
|
57
|
+
</p>
|
|
58
|
+
</td>
|
|
59
|
+
</tr>
|
|
60
|
+
</tbody>
|
|
61
|
+
</table>
|
|
62
|
+
</div>
|
|
63
|
+
{% endmacro %}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
{{ renderAccessor(accessor.get, "get", originalParent) if accessor.get }}
|
|
67
|
+
{{ renderAccessor(accessor.set, "set", originalParent) if accessor.set }}
|
|
68
|
+
{% endmacro %}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{% import "helpers/code.html.nunj" as codeMacro %}
|
|
2
|
+
{% import "helpers/parameters.html.nunj" as parametersMacro %}
|
|
3
|
+
{% import "helpers/no-content.html.nunj" as noContentMacro %}
|
|
4
|
+
|
|
5
|
+
{% macro render(constructor) %}
|
|
6
|
+
{% set parameters = constructor.getParameters() %}
|
|
7
|
+
<div class="ng-doc-table-wrapper">
|
|
8
|
+
<table class="ng-doc-method-table">
|
|
9
|
+
<tbody>
|
|
10
|
+
<tr>
|
|
11
|
+
<td>
|
|
12
|
+
{% set description = constructor | extractDocs %}
|
|
13
|
+
|
|
14
|
+
{{ description if description else noContentMacro.render('No documentation has been provided.') }}
|
|
15
|
+
</td>
|
|
16
|
+
</tr>
|
|
17
|
+
<tr>
|
|
18
|
+
<td>
|
|
19
|
+
<h5 class="no-anchor">Presentation</h5>
|
|
20
|
+
{{ codeMacro.render(constructor | constructorPresentation, "typescript", false) }}
|
|
21
|
+
</td>
|
|
22
|
+
</tr>
|
|
23
|
+
<tr>
|
|
24
|
+
<td>
|
|
25
|
+
{%- if parameters.length %}
|
|
26
|
+
<h5 class="no-anchor">Parameters</h5>
|
|
27
|
+
{{ parametersMacro.render(parameters, constructor) }}
|
|
28
|
+
{%- endif %}
|
|
29
|
+
</td>
|
|
30
|
+
</tr>
|
|
31
|
+
</tbody>
|
|
32
|
+
</table>
|
|
33
|
+
</div>
|
|
34
|
+
{% endmacro %}
|
|
@@ -7,37 +7,33 @@
|
|
|
7
7
|
{% set isStatic = declaration.isStatic and declaration.isStatic() %}
|
|
8
8
|
{% set isAsync = declaration.isAsync and declaration.isAsync() %}
|
|
9
9
|
{% set isReadonly = declaration.isReadonly and declaration.isReadonly() %}
|
|
10
|
-
{% set
|
|
11
|
-
{% set tooltip = ["Abstract" if isAbstract, 'Static' if isStatic, 'Async' if isAsync, 'Readonly' if isReadonly, 'Overriden' if isOverriden] | noEmpty | join(', ') %}
|
|
10
|
+
{% set tooltip = ["Abstract" if isAbstract, 'Static' if isStatic, 'Async' if isAsync, 'Readonly' if isReadonly] | noEmpty | join(', ') %}
|
|
12
11
|
|
|
13
12
|
{%- if type == 'badge' %}
|
|
14
|
-
{%- if isAbstract or isStatic or isAsync or
|
|
13
|
+
{%- if isAbstract or isStatic or isAsync or isReadonly %}
|
|
15
14
|
<span class="ng-doc-badge-wrapper" ngDocTooltip="{{ tooltip }}">
|
|
16
15
|
{{ badgeMacro.render("Abstract") if isAbstract }}
|
|
17
16
|
{{ badgeMacro.render("Static") if isStatic }}
|
|
18
17
|
{{ badgeMacro.render("Async") if isAsync }}
|
|
19
|
-
{{ badgeMacro.render("Overriden") if isOverriden }}
|
|
20
18
|
{{ badgeMacro.render("Readonly") if isReadonly }}
|
|
21
19
|
</span>
|
|
22
20
|
{%- endif %}
|
|
23
21
|
|
|
24
22
|
{%- elseif type == 'modifier' %}
|
|
25
|
-
{%- if isAbstract or isStatic or isAsync or
|
|
23
|
+
{%- if isAbstract or isStatic or isAsync or isReadonly %}
|
|
26
24
|
<div class="ng-doc-modifiers-wrapper">
|
|
27
25
|
{{ modifierMacro.render("Abstract") if isAbstract }}
|
|
28
26
|
{{ modifierMacro.render("Static") if isStatic }}
|
|
29
27
|
{{ modifierMacro.render("Async") if isAsync }}
|
|
30
|
-
{{ modifierMacro.render("Overriden") if isOverriden }}
|
|
31
28
|
{{ modifierMacro.render("Readonly") if isReadonly }}
|
|
32
29
|
</div>
|
|
33
30
|
{%- endif %}
|
|
34
31
|
{%- else %}
|
|
35
|
-
{%- if isAbstract or isStatic or isAsync or
|
|
32
|
+
{%- if isAbstract or isStatic or isAsync or isReadonly %}
|
|
36
33
|
<span class="ng-doc-tags-wrapper">
|
|
37
34
|
{{ tagMacro.render("abstract") if isAbstract }}
|
|
38
35
|
{{ tagMacro.render("static") if isStatic }}
|
|
39
36
|
{{ tagMacro.render("async") if isAsync }}
|
|
40
|
-
{{ tagMacro.render("overriden") if isOverriden }}
|
|
41
37
|
{{ tagMacro.render("readonly") if isReadonly }}
|
|
42
38
|
</span>
|
|
43
39
|
{%- endif %}
|
|
@@ -5,23 +5,38 @@
|
|
|
5
5
|
{% import "helpers/decorators.html.nunj" as decoratorsMacro %}
|
|
6
6
|
{% import "helpers/no-content.html.nunj" as noContentMacro %}
|
|
7
7
|
|
|
8
|
-
{% macro render(method) %}
|
|
8
|
+
{% macro render(method, originalParent) %}
|
|
9
9
|
{% set parameters = method.getParameters() %}
|
|
10
|
+
{% set methodChain = method | getMethodChain %}
|
|
11
|
+
{% set inheritedFrom = method.getParent() if method.getParent() !== originalParent %}
|
|
12
|
+
{% set overriddenMember = method | getOverriddenMember %}
|
|
13
|
+
{% set implementedMember = method | getImplementedMember %}
|
|
14
|
+
{% set docNode = methodChain | firstNodeWithComment %}
|
|
15
|
+
|
|
10
16
|
<div class="ng-doc-table-wrapper">
|
|
11
17
|
<table class="ng-doc-method-table">
|
|
12
18
|
<thead>
|
|
13
19
|
<tr>
|
|
14
20
|
<th>
|
|
15
21
|
{{ decoratorsMacro.render(method.getDecorators()) if method.getDecorators }}
|
|
16
|
-
<h3>{{ method.getName() }}</h3>
|
|
17
22
|
{{ tagsMacro.render(method, 'modifier') }}
|
|
23
|
+
<h3>{{ method.getName() }}</h3>
|
|
24
|
+
<div class="ng-doc-node-details">
|
|
25
|
+
{%- if inheritedFrom %}
|
|
26
|
+
inherited from <code>{{ inheritedFrom.getName() }}</code>
|
|
27
|
+
{%- elseif overriddenMember %}
|
|
28
|
+
overrides <code>{{ overriddenMember.getParent().getName() }}</code>
|
|
29
|
+
{%- elseif implementedMember %}
|
|
30
|
+
implements <code>{{ implementedMember.getParent().getName() }}</code>
|
|
31
|
+
{%- endif %}
|
|
32
|
+
</div>
|
|
18
33
|
</th>
|
|
19
34
|
</tr>
|
|
20
35
|
</thead>
|
|
21
36
|
<tbody>
|
|
22
37
|
<tr>
|
|
23
38
|
<td>
|
|
24
|
-
{% set description =
|
|
39
|
+
{% set description = docNode | extractDocs %}
|
|
25
40
|
|
|
26
41
|
{{ description if description else noContentMacro.render('No documentation has been provided.') }}
|
|
27
42
|
</td>
|
|
@@ -36,7 +51,7 @@
|
|
|
36
51
|
<td>
|
|
37
52
|
{%- if parameters.length %}
|
|
38
53
|
<h5 class="no-anchor">Parameters</h5>
|
|
39
|
-
{{ parametersMacro.render(parameters,
|
|
54
|
+
{{ parametersMacro.render(parameters, docNode) }}
|
|
40
55
|
{%- endif %}
|
|
41
56
|
<h5 class="no-anchor">Returns</h5>
|
|
42
57
|
<p>
|