@alauda/ui 7.3.3-beta.8 → 7.4.0
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/anchor/anchor.component.d.ts +2 -2
- package/autocomplete/suggestion/suggestion.component.d.ts +1 -1
- package/button/button.component.d.ts +1 -1
- package/button/button.types.d.ts +1 -1
- package/date-picker/calendar/header/component.d.ts +1 -1
- package/date-picker/calendar/panel/picker-panel.d.ts +1 -1
- package/date-picker/calendar/range-picker-panel/component.d.ts +1 -1
- package/date-picker/range-picker/range-picker.component.d.ts +1 -1
- package/date-picker/trigger/trigger.component.d.ts +2 -2
- package/dialog/confirm-dialog/confirm-dialog.component.d.ts +1 -1
- package/dialog/dialog-content/dialog-content.component.d.ts +1 -1
- package/dialog/dialog-content/dialog-footer.component.d.ts +1 -1
- package/dialog/dialog-content/dialog-header.component.d.ts +1 -1
- package/dialog/dialog.component.d.ts +1 -1
- package/drawer/types.d.ts +1 -1
- package/dropdown/dropdown-button/dropdown-button.component.d.ts +2 -2
- package/dropdown/dropdown.types.d.ts +1 -1
- package/dropdown/menu/menu.component.d.ts +2 -2
- package/dropdown/menu-item/menu-item.component.d.ts +1 -1
- package/dropdown/submenu/submenu.component.d.ts +2 -2
- package/esm2022/anchor/anchor.component.mjs +2 -2
- package/esm2022/anchor/anchor.directive.mjs +2 -2
- package/esm2022/anchor/utils.mjs +2 -2
- package/esm2022/autocomplete/autocomplete.component.mjs +4 -4
- package/esm2022/autocomplete/autocomplete.directive.mjs +2 -2
- package/esm2022/autocomplete/suggestion/suggestion.component.mjs +4 -4
- package/esm2022/autocomplete/suggestion-group/suggestion-group.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/button/button.types.mjs +1 -1
- package/esm2022/date-picker/calendar/header/component.mjs +2 -2
- package/esm2022/date-picker/calendar/panel/picker-panel.mjs +2 -2
- package/esm2022/date-picker/calendar/range-picker-panel/component.mjs +2 -2
- package/esm2022/date-picker/date-picker/date-picker.component.mjs +2 -2
- package/esm2022/date-picker/range-picker/range-picker.component.mjs +1 -1
- package/esm2022/date-picker/trigger/trigger.component.mjs +2 -2
- package/esm2022/dialog/confirm-dialog/confirm-dialog.component.mjs +2 -2
- package/esm2022/dialog/dialog-animations.mjs +2 -2
- package/esm2022/dialog/dialog-content/dialog-content.component.mjs +2 -2
- package/esm2022/dialog/dialog-content/dialog-footer.component.mjs +2 -2
- package/esm2022/dialog/dialog-content/dialog-header.component.mjs +2 -2
- package/esm2022/dialog/dialog.component.mjs +2 -2
- package/esm2022/drawer/component/internal/internal.component.mjs +2 -2
- package/esm2022/drawer/types.mjs +1 -1
- package/esm2022/dropdown/dropdown-button/dropdown-button.component.mjs +3 -3
- package/esm2022/dropdown/dropdown.types.mjs +1 -1
- package/esm2022/dropdown/menu/menu.component.mjs +3 -3
- package/esm2022/dropdown/menu-item/menu-item.component.mjs +2 -2
- package/esm2022/dropdown/submenu/submenu.component.mjs +3 -3
- package/esm2022/form/common-form.mjs +6 -4
- package/esm2022/form/form-item/form-item.component.mjs +2 -2
- package/esm2022/form/form.types.mjs +1 -1
- package/esm2022/form/helper-directives.mjs +2 -2
- package/esm2022/i18n/i18n.pipe.mjs +1 -1
- package/esm2022/i18n/i18n.service.mjs +1 -1
- package/esm2022/i18n/i18n.type.mjs +1 -1
- package/esm2022/icon/icon.component.mjs +2 -2
- package/esm2022/icon/icons.mjs +2 -2
- package/esm2022/index.mjs +3 -4
- package/esm2022/inline-alert/inline-alert.component.mjs +2 -2
- package/esm2022/inline-alert/inline-alert.types.mjs +1 -1
- package/esm2022/input/input-group/input-group.component.mjs +2 -2
- package/esm2022/input/input.component.mjs +5 -5
- package/esm2022/input/number-input/number-input.component.mjs +3 -3
- package/esm2022/input/search/search.component.mjs +3 -3
- package/esm2022/input/tags-input/tags-input.component.mjs +5 -5
- package/esm2022/input/tags-input/with-max-row-count.mjs +2 -2
- package/esm2022/internal/types/index.mjs +8 -0
- package/esm2022/internal/utils/animations.mjs +2 -0
- package/esm2022/internal/utils/async.mjs +6 -0
- package/esm2022/internal/utils/bem.mjs +44 -0
- package/esm2022/internal/utils/coercion.mjs +5 -0
- package/esm2022/internal/utils/fn.mjs +16 -0
- package/esm2022/internal/utils/index.mjs +10 -0
- package/esm2022/internal/utils/observe-dom.mjs +23 -0
- package/esm2022/internal/utils/operators.mjs +15 -0
- package/esm2022/internal/utils/scroll-into-view.mjs +17 -0
- package/esm2022/internal/utils/styles-renderer.mjs +43 -0
- package/esm2022/internal/utils/watch-content-exist.mjs +6 -0
- package/esm2022/message/message.component.mjs +2 -2
- package/esm2022/notification/notification.component.mjs +2 -2
- package/esm2022/paginator/paginator.component.mjs +7 -5
- package/esm2022/radio/radio-button/radio-button.component.mjs +2 -2
- package/esm2022/radio/radio.component.mjs +2 -2
- package/esm2022/radio/radio.types.mjs +1 -1
- package/esm2022/select/base-select.mjs +4 -4
- package/esm2022/select/multi-select/multi-select.component.mjs +7 -7
- package/esm2022/select/option/option.component.mjs +5 -5
- package/esm2022/select/option-group/option-group.component.mjs +2 -2
- package/esm2022/select/select.component.mjs +4 -4
- package/esm2022/select/validators.mjs +2 -2
- package/esm2022/sort/sort-header.component.mjs +2 -2
- package/esm2022/status-bar/status-bar.component.mjs +2 -2
- package/esm2022/status-bar/status-bar.types.mjs +1 -1
- package/esm2022/steps/types.mjs +1 -1
- package/esm2022/switch/switch.component.mjs +2 -2
- package/esm2022/table/index.mjs +3 -3
- package/esm2022/table/table-column-resizable.directive.mjs +149 -0
- package/esm2022/table/table-scroll.directive.mjs +3 -3
- package/esm2022/table/table.component.mjs +5 -5
- package/esm2022/table/table.module.mjs +31 -73
- package/esm2022/tabs/tab-body.component.mjs +2 -2
- package/esm2022/tabs/tab-group.component.mjs +2 -2
- package/esm2022/tabs/tab-header-active-indicator.component.mjs +2 -2
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab.component.mjs +2 -2
- package/esm2022/tabs/tabs.types.mjs +1 -1
- package/esm2022/tag/check-tag/check-tag.component.mjs +3 -3
- package/esm2022/tag/tag.component.mjs +3 -3
- package/esm2022/tag/tag.types.mjs +1 -1
- package/esm2022/time-picker/component.mjs +2 -2
- package/esm2022/time-picker/panel/panel.component.mjs +3 -3
- package/esm2022/time-picker/time-picker.type.mjs +2 -2
- package/esm2022/tooltip/base-tooltip.mjs +2 -2
- package/esm2022/tooltip/tooltip.component.mjs +2 -2
- package/esm2022/tree-select/tree-select.component.mjs +4 -4
- package/fesm2022/alauda-ui.mjs +376 -446
- package/fesm2022/alauda-ui.mjs.map +1 -1
- package/form/common-form.d.ts +3 -2
- package/form/form-item/form-item.component.d.ts +1 -1
- package/form/form.types.d.ts +1 -1
- package/i18n/i18n.pipe.d.ts +1 -2
- package/i18n/i18n.service.d.ts +2 -2
- package/i18n/i18n.type.d.ts +0 -1
- package/icon/icon.component.d.ts +1 -1
- package/icon/icons.d.ts +1 -1
- package/index.d.ts +2 -3
- package/inline-alert/inline-alert.component.d.ts +1 -1
- package/inline-alert/inline-alert.types.d.ts +1 -1
- package/input/input-group/input-group.component.d.ts +1 -1
- package/input/input.component.d.ts +1 -1
- package/input/number-input/number-input.component.d.ts +2 -2
- package/input/search/search.component.d.ts +2 -2
- package/input/tags-input/tags-input.component.d.ts +2 -2
- package/input/tags-input/with-max-row-count.d.ts +1 -1
- package/{utils → internal/utils}/index.d.ts +1 -0
- package/internal/utils/styles-renderer.d.ts +18 -0
- package/message/message.component.d.ts +1 -1
- package/notification/notification.component.d.ts +1 -1
- package/package.json +1 -1
- package/paginator/paginator.component.d.ts +1 -1
- package/radio/radio-button/radio-button.component.d.ts +1 -1
- package/radio/radio.component.d.ts +1 -1
- package/radio/radio.types.d.ts +1 -1
- package/select/base-select.d.ts +2 -2
- package/select/multi-select/multi-select.component.d.ts +1 -1
- package/select/option/option.component.d.ts +2 -2
- package/sort/sort-header.component.d.ts +1 -1
- package/status-bar/status-bar.component.d.ts +1 -1
- package/status-bar/status-bar.types.d.ts +1 -1
- package/steps/types.d.ts +1 -1
- package/switch/switch.component.d.ts +1 -1
- package/table/index.d.ts +2 -2
- package/table/table-column-resizable.directive.d.ts +30 -0
- package/table/table-scroll.directive.d.ts +1 -1
- package/table/table.component.d.ts +2 -2
- package/table/table.module.d.ts +17 -18
- package/tabs/tab-group.component.d.ts +1 -1
- package/tabs/tab-header-active-indicator.component.d.ts +1 -1
- package/tabs/tab-header.component.d.ts +1 -1
- package/tabs/tabs.types.d.ts +1 -1
- package/tag/check-tag/check-tag.component.d.ts +2 -2
- package/tag/tag.component.d.ts +2 -2
- package/tag/tag.types.d.ts +1 -1
- package/time-picker/component.d.ts +1 -1
- package/time-picker/panel/panel.component.d.ts +1 -1
- package/tooltip/tooltip.component.d.ts +1 -1
- package/tree-select/tree-select.component.d.ts +1 -1
- package/esm2022/resizable/index.mjs +0 -2
- package/esm2022/resizable/resizable.directive.mjs +0 -181
- package/esm2022/table/table-col-resizable.directive.mjs +0 -48
- package/esm2022/types.mjs +0 -8
- package/esm2022/utils/animations.mjs +0 -2
- package/esm2022/utils/async.mjs +0 -6
- package/esm2022/utils/bem.mjs +0 -44
- package/esm2022/utils/coercion.mjs +0 -5
- package/esm2022/utils/fn.mjs +0 -16
- package/esm2022/utils/index.mjs +0 -9
- package/esm2022/utils/observe-dom.mjs +0 -23
- package/esm2022/utils/operators.mjs +0 -15
- package/esm2022/utils/scroll-into-view.mjs +0 -17
- package/esm2022/utils/watch-content-exist.mjs +0 -6
- package/resizable/index.d.ts +0 -1
- package/resizable/resizable.directive.d.ts +0 -44
- package/resizable/resizable.scss +0 -38
- package/table/table-col-resizable.directive.d.ts +0 -14
- /package/{types.d.ts → internal/types/index.d.ts} +0 -0
- /package/{utils → internal/utils}/animations.d.ts +0 -0
- /package/{utils → internal/utils}/async.d.ts +0 -0
- /package/{utils → internal/utils}/bem.d.ts +0 -0
- /package/{utils → internal/utils}/coercion.d.ts +0 -0
- /package/{utils → internal/utils}/fn.d.ts +0 -0
- /package/{utils → internal/utils}/observe-dom.d.ts +0 -0
- /package/{utils → internal/utils}/operators.d.ts +0 -0
- /package/{utils → internal/utils}/scroll-into-view.d.ts +0 -0
- /package/{utils → internal/utils}/watch-content-exist.d.ts +0 -0
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export const observeResizeOn = (target, options) => new Observable(observer => {
|
|
3
|
-
const resizeObserver = new ResizeObserver(entries => {
|
|
4
|
-
for (const entry of entries) {
|
|
5
|
-
observer.next(entry.target);
|
|
6
|
-
}
|
|
7
|
-
});
|
|
8
|
-
resizeObserver.observe(target, options);
|
|
9
|
-
return () => {
|
|
10
|
-
resizeObserver.unobserve(target);
|
|
11
|
-
resizeObserver.disconnect();
|
|
12
|
-
};
|
|
13
|
-
});
|
|
14
|
-
export const observeMutationOn = (target, options) => new Observable(observer => {
|
|
15
|
-
const mutationObserver = new MutationObserver(mutations => {
|
|
16
|
-
for (const mutation of mutations) {
|
|
17
|
-
observer.next(mutation);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
mutationObserver.observe(target, options);
|
|
21
|
-
return () => mutationObserver.disconnect();
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JzZXJ2ZS1kb20uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvb2JzZXJ2ZS1kb20udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUVsQyxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsQ0FDN0IsTUFBUyxFQUNULE9BQStCLEVBQy9CLEVBQUUsQ0FDRixJQUFJLFVBQVUsQ0FBSSxRQUFRLENBQUMsRUFBRTtJQUMzQixNQUFNLGNBQWMsR0FBRyxJQUFJLGNBQWMsQ0F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XRhdGlvbk9ic2VydmVyLmRpc2Nvbm5lY3QoKTtcbiAgfSk7XG4iXX0=
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReplaySubject, share } from 'rxjs';
|
|
2
|
-
export const publishRef = (bufferSizeOrConfig = {}) => {
|
|
3
|
-
const { bufferSize = 1, windowTime, timestampProvider, connector = () => new ReplaySubject(bufferSize, windowTime, timestampProvider), resetOnError = false, resetOnComplete = false, resetOnRefCountZero = true, } = typeof bufferSizeOrConfig === 'number'
|
|
4
|
-
? {
|
|
5
|
-
bufferSize: bufferSizeOrConfig,
|
|
6
|
-
}
|
|
7
|
-
: bufferSizeOrConfig;
|
|
8
|
-
return share({
|
|
9
|
-
connector,
|
|
10
|
-
resetOnError,
|
|
11
|
-
resetOnComplete,
|
|
12
|
-
resetOnRefCountZero,
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BlcmF0b3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3V0aWxzL29wZXJhdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsYUFBYSxFQUFFLEtBQUssRUFBcUIsTUFBTSxNQUFNLENBQUM7QUFVL0QsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHLENBQUkscUJBQTBDLEVBQUUsRUFBRSxFQUFFO0lBQzVFLE1BQU0sRUFDSixVQUFVLEdBQUcsQ0FBQyxFQUNkLFVBQVUsRUFDVixpQkFBaUIsRUFDakIsU0FBUyxHQUFHLEdBQUcsRUFBRSxDQUNmLElBQUksYUFBYSxDQUFDLFVBQVUsRUFBRSxVQUFVLEVBQUUsaUJBQWlCLENBQUMsRUFDOUQsWUFBWSxHQUFHLEtBQUssRUFDcEIsZUFBZSxHQUFHLEtBQUssRUFDdkIsbUJBQW1CLEdBQUcsS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hbHNlLFxuICAgIHJlc2V0T25SZWZDb3VudFplcm8gPSB0cnVlLFxuICB9ID0gdHlwZW9mIGJ1ZmZlclNpemVPckNvbmZpZyA9PT0gJ251bWJlcidcbiAgICA/ICh7XG4gICAgICAgIGJ1ZmZlclNpemU6IGJ1ZmZlclNpemVPckNvbmZpZyxcbiAgICAgIH0gYXMgRXhjbHVkZTxQdWJsaXNoUmVmQ29uZmlnPFQ+LCBudW1iZXI+KVxuICAgIDogYnVmZmVyU2l6ZU9yQ29uZmlnO1xuICByZXR1cm4gc2hhcmU8VD4oe1xuICAgIGNvbm5lY3RvcixcbiAgICByZXNldE9uRXJyb3IsXG4gICAgcmVzZXRPbkNvbXBsZXRlLFxuICAgIHJlc2V0T25SZWZDb3VudFplcm8sXG4gIH0pO1xufTtcbiJdfQ==
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export function scrollIntoView(container, selected) {
|
|
2
|
-
if (!selected) {
|
|
3
|
-
container.scrollTop = 0;
|
|
4
|
-
return;
|
|
5
|
-
}
|
|
6
|
-
const top = selected.offsetTop;
|
|
7
|
-
const bottom = selected.offsetTop + selected.offsetHeight;
|
|
8
|
-
const viewRectTop = container.scrollTop;
|
|
9
|
-
const viewRectBottom = viewRectTop + container.clientHeight;
|
|
10
|
-
if (viewRectTop > top) {
|
|
11
|
-
container.scrollTop = top;
|
|
12
|
-
}
|
|
13
|
-
else if (viewRectBottom < bottom) {
|
|
14
|
-
container.scrollTop = bottom - container.clientHeight;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsLWludG8tdmlldy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy9zY3JvbGwtaW50by12aWV3LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sVUFBVSxjQUFjLENBQUMsU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vbSA9IHZpZXdSZWN0VG9wICsgY29udGFpbmVyLmNsaWVudEhlaWdodDtcblxuICBpZiAodmlld1JlY3RUb3AgPiB0b3ApIHtcbiAgICBjb250YWluZXIuc2Nyb2xsVG9wID0gdG9wO1xuICB9IGVsc2UgaWYgKHZpZXdSZWN0Qm90dG9tIDwgYm90dG9tKSB7XG4gICAgY29udGFpbmVyLnNjcm9sbFRvcCA9IGJvdHRvbSAtIGNvbnRhaW5lci5jbGllbnRIZWlnaHQ7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { map, startWith } from 'rxjs';
|
|
2
|
-
import { publishRef } from './operators';
|
|
3
|
-
export function watchContentExist(queryList) {
|
|
4
|
-
return queryList.changes.pipe(startWith(queryList), map((list) => !!list.length), publishRef());
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2F0Y2gtY29udGVudC1leGlzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy93YXRjaC1jb250ZW50LWV4aXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxHQUFHLEVBQUUsU0FBUyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBRXRDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFekMsTUFBTSxVQUFVLGlCQUFpQixDQUFDLFNBQTZCO0lBQzdELE9BQU8sU0FBUyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQzNCLFNBQVMsQ0FBQyxTQUFTLENBQUMsRUFDcEIsR0FBRyxDQUFDLENBQUMsSUFBd0IsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsRUFDaEQsVUFBVSxFQUFFLENBQ2IsQ0FBQztBQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBRdWVyeUxpc3QgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IG1hcCwgc3RhcnRXaXRoIH0gZnJvbSAncnhqcyc7XG5cbmltcG9ydCB7IHB1Ymxpc2hSZWYgfSBmcm9tICcuL29wZXJhdG9ycyc7XG5cbmV4cG9ydCBmdW5jdGlvbiB3YXRjaENvbnRlbnRFeGlzdChxdWVyeUxpc3Q6IFF1ZXJ5TGlzdDx1bmtub3duPikge1xuICByZXR1cm4gcXVlcnlMaXN0LmNoYW5nZXMucGlwZShcbiAgICBzdGFydFdpdGgocXVlcnlMaXN0KSxcbiAgICBtYXAoKGxpc3Q6IFF1ZXJ5TGlzdDx1bmtub3duPikgPT4gISFsaXN0Lmxlbmd0aCksXG4gICAgcHVibGlzaFJlZigpLFxuICApO1xufVxuIl19
|
package/resizable/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ResizableDirective } from './resizable.directive';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ContainerForResizableDirective {
|
|
5
|
-
readonly el: ElementRef;
|
|
6
|
-
constructor(el: ElementRef);
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContainerForResizableDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ContainerForResizableDirective, "[auiContainerForResizable]", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
10
|
-
export declare class ResizableDirective implements AfterViewInit, OnDestroy {
|
|
11
|
-
readonly renderer2: Renderer2;
|
|
12
|
-
private readonly containerDirective;
|
|
13
|
-
minWidth: string | number;
|
|
14
|
-
maxWidth: string | number;
|
|
15
|
-
resizeStart: EventEmitter<number>;
|
|
16
|
-
resizing: EventEmitter<number>;
|
|
17
|
-
resizeEnd: EventEmitter<number>;
|
|
18
|
-
destroy$$: Subject<void>;
|
|
19
|
-
containerElement: Element;
|
|
20
|
-
private readonly element;
|
|
21
|
-
private initialWidth;
|
|
22
|
-
private mouseDownScreenX;
|
|
23
|
-
resizeHandle: HTMLElement;
|
|
24
|
-
resizeOverlay: HTMLElement;
|
|
25
|
-
resizeBar: HTMLElement;
|
|
26
|
-
private handleHasUp;
|
|
27
|
-
private readonly BAR_WIDTH;
|
|
28
|
-
constructor(element: ElementRef, renderer2: Renderer2, containerDirective: ContainerForResizableDirective);
|
|
29
|
-
ngAfterViewInit(): void;
|
|
30
|
-
ngOnDestroy(): void;
|
|
31
|
-
private binEvent;
|
|
32
|
-
private setResizeHandleVisible;
|
|
33
|
-
private createResizeHandle;
|
|
34
|
-
private createResizeOverlay;
|
|
35
|
-
private createResizeBar;
|
|
36
|
-
private onMousedown;
|
|
37
|
-
private onMouseup;
|
|
38
|
-
private move;
|
|
39
|
-
private getFinalWidth;
|
|
40
|
-
private getOffset;
|
|
41
|
-
private handleWidth;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ResizableDirective, [null, null, { optional: true; }]>;
|
|
43
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ResizableDirective, "[auiResizable]", never, { "minWidth": { "alias": "minWidth"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; }, { "resizeStart": "resizeStart"; "resizing": "resizing"; "resizeEnd": "resizeEnd"; }, never, never, true, never>;
|
|
44
|
-
}
|
package/resizable/resizable.scss
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
@import '../theme/var';
|
|
2
|
-
|
|
3
|
-
.aui-resizable,
|
|
4
|
-
.aui-container-for-resizable {
|
|
5
|
-
position: relative;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.resize-handle {
|
|
9
|
-
display: inline-block;
|
|
10
|
-
position: absolute;
|
|
11
|
-
right: 0;
|
|
12
|
-
top: 0;
|
|
13
|
-
width: 6px;
|
|
14
|
-
cursor: col-resize;
|
|
15
|
-
height: 100%;
|
|
16
|
-
z-index: 9999;
|
|
17
|
-
border-right: 2px solid use-rgb(p-2);
|
|
18
|
-
visibility: hidden;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.resize-overlay {
|
|
22
|
-
position: absolute;
|
|
23
|
-
display: block;
|
|
24
|
-
inset: 0;
|
|
25
|
-
z-index: 1000;
|
|
26
|
-
cursor: col-resize;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.resize-bar {
|
|
30
|
-
top: 0;
|
|
31
|
-
bottom: 0;
|
|
32
|
-
position: absolute;
|
|
33
|
-
cursor: col-resize;
|
|
34
|
-
background: use-rgb(p-2);
|
|
35
|
-
width: 2px;
|
|
36
|
-
z-index: 9999;
|
|
37
|
-
display: block;
|
|
38
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
2
|
-
import { ResizableDirective } from '../resizable';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TableColResizableDirective extends ResizableDirective implements AfterViewInit {
|
|
5
|
-
minWidth: string;
|
|
6
|
-
private readonly tableColumnDefDirective;
|
|
7
|
-
private readonly tableComponent;
|
|
8
|
-
private readonly tableScrollWrapperDirective;
|
|
9
|
-
private styleEl;
|
|
10
|
-
private hostAttr;
|
|
11
|
-
ngAfterViewInit(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableColResizableDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableColResizableDirective, "[auiTableColResizable]", never, { "minWidth": { "alias": "minWidth"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|